zfsbootmenu: look less bad on BIOS consoles #1188
This file contains hidden or 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: Build check | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'bin/**' | |
| - 'zfsbootmenu/**' | |
| - 'dracut/**' | |
| - 'initcpio/**' | |
| pull_request: | |
| paths: | |
| - 'bin/**' | |
| - 'zfsbootmenu/**' | |
| - 'dracut/**' | |
| - 'initcpio/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build boot images | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/zbm-dev/zbm-builder:development | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Prepare repository for build | |
| run: | | |
| mkdir -p /build | |
| rm -rf /zbm | |
| ln -s "$(pwd)" /zbm | |
| echo "zfsbootmenu_module_root='/zbm/zfsbootmenu'" > /zbm/etc/zfsbootmenu/dracut.conf.d/zbm_modroot.conf | |
| yq-go e '.Global.DracutFlags += ["--no-early-microcode"]' /zbm/etc/zbm-builder/config.yaml > /build/config.yaml | |
| - name: Build release artifacts | |
| run: | | |
| rm -rf /build/dracut.conf.d | |
| mkdir -p /build/dracut.conf.d | |
| cp /zbm/etc/zfsbootmenu/release.conf.d/*.conf /build/dracut.conf.d/ | |
| /zbm/releng/docker/build-init.sh -- --debug | |
| - name: Archive release EFI | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Release-EFI | |
| path: /build/build/*.EFI | |
| - name: Archive release components | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Release-Components | |
| path: | | |
| /build/build/* | |
| !/build/build/*.EFI | |
| - name: Prune release artifacts | |
| run: | | |
| rm -r /build/build | |
| - name: Build recovery artifacts | |
| run: | | |
| rm -rf /build/dracut.conf.d | |
| mkdir -p /build/dracut.conf.d | |
| cp /zbm/etc/zfsbootmenu/recovery.conf.d/*.conf /build/dracut.conf.d/ | |
| /zbm/releng/docker/build-init.sh -- --debug | |
| - name: Archive recovery EFI | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Recovery-EFI | |
| path: /build/build/*.EFI | |
| - name: Archive recovery components | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Recovery-Components | |
| path: | | |
| /build/build/* | |
| !/build/build/*.EFI |