Update README.md to correct the ISO build command. #28
Workflow file for this run
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: Check if ISO can be built | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| schedule: | |
| # Run the workflow every day at midnight | |
| - cron: 0 0 * * * | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest # Use a standard runner | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Arch Linux Container | |
| run: | | |
| if ! docker run --privileged --name arch-container -d -v ${{ github.workspace }}:/workdir archlinux:latest sleep infinity; then | |
| echo "Failed to start Arch Linux container." && exit 1 | |
| fi | |
| - name: Update and Build ISO in Arch Container | |
| run: | | |
| if ! docker exec arch-container bash -c " | |
| pacman -Syu --noconfirm && | |
| pacman -S --noconfirm git archiso grub && | |
| cd /workdir && | |
| mkarchiso -v -w workdir/ -o out/ . | |
| "; then | |
| echo "Failed to build ISO." && exit 1 | |
| fi |