test.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Test
  2. on:
  3. push:
  4. workflow_dispatch:
  5. inputs:
  6. name:
  7. description: "OS name"
  8. required: false
  9. default: ""
  10. custom-ui-id:
  11. description: "The ID of the UI package to use"
  12. required: false
  13. default: ""
  14. custom-login-html-url:
  15. description: "OS name"
  16. required: false
  17. default: ""
  18. concurrency:
  19. group: "Test"
  20. cancel-in-progress: true
  21. jobs:
  22. build-iso:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Build PageOS ISO
  26. uses: ./.github/workflows/build_iso.yaml
  27. with:
  28. name: "${{ github.event.inputs.name }}"
  29. custom-ui-id: "${{ github.event.inputs.custom-ui-id }}"
  30. custom-login-html-url: "${{ github.event.inputs.custom-login-html-url }}"
  31. - name: Upload ISO artifact
  32. uses: actions/upload-artifact@v4
  33. with:
  34. name: ${{ github.event.inputs.name || 'pageos' }}
  35. path: target/*.iso
  36. compression-level: 9 # maximum compression
  37. retention-days: 5