feat: use new vib finalize plugins to create functional iso #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vib PR | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
#container: | |
# image: ghcr.io/vanilla-os/core:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: deps | |
run: sudo apt-get install -y mtools xorriso git libconfuse-dev | |
- name: genimage | |
run: | | |
mkdir deps-build | |
curl -SLO https://github.com/pengutronix/genimage/releases/download/v18/genimage-18.tar.xz | |
tar -xvf genimage-18.tar.xz -C deps-build/ | |
cd deps-build/genimage-18/ | |
./configure --prefix=/usr | |
sudo make install | |
- uses: vanilla-os/vib-gh-action@v0.8.0-1 | |
with: | |
recipe: 'recipe.yml' | |
- name: Build the Docker image | |
run: | | |
sudo ./vib compile --runtime docker | |
sudo chmod 777 genimg/build/vanilla_installer.iso | |
- name: Upload iso | |
uses: actions/upload-artifact@v4 | |
with: | |
Name: iso | |
Path: genimg/build/vanilla_installer.iso |