build_iso.yaml 896 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build PageOS ISO
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. name:
  6. description: "OS name"
  7. required: false
  8. default: "pageos"
  9. concurrency:
  10. group: "测试"
  11. cancel-in-progress: true
  12. jobs:
  13. build-iso:
  14. runs-on: ubuntu-latest
  15. container:
  16. image: archlinux:latest
  17. options: --privileged
  18. steps:
  19. - name: Checkout repository
  20. uses: actions/checkout@v4
  21. with:
  22. repository: swaybien/pageos
  23. - name: Setup actions environment
  24. run: ./scripts/gh_acions_setup.bash
  25. - name: Run build script
  26. run: sudo -u builder ./build.bash --noconfirm
  27. - name: Upload ISO artifact
  28. uses: actions/upload-artifact@v4
  29. with:
  30. name: ${{ github.event.inputs.name || 'pageos' }}
  31. path: target/*.iso
  32. compression-level: 9 # maximum compression
  33. retention-days: 5