|
| 1 | +name: 'Quick Tests' |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - 'master' |
| 8 | + - 'experimental/*' |
| 9 | + - 'feature/*' |
| 10 | + - 'release/*' |
| 11 | + pull_request: |
| 12 | + branches: |
| 13 | + - 'master' |
| 14 | + - 'experimental/*' |
| 15 | + - 'feature/*' |
| 16 | + - 'release/*' |
| 17 | + |
| 18 | +jobs: |
| 19 | + build_unix: |
| 20 | + name: 'Unix Build Test' |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + |
| 24 | + - name: 'Check out Repository' |
| 25 | + uses: actions/checkout@v2 |
| 26 | + |
| 27 | + - name: 'Install Prerequisites' |
| 28 | + uses: c-lipka/povray/.github/actions/unix_getlibs_apt@master |
| 29 | + |
| 30 | + - name: 'Prebuild' |
| 31 | + uses: c-lipka/povray/.github/actions/unix_prebuild@master |
| 32 | + - name: 'Sanity-Check Working Tree' |
| 33 | + uses: c-lipka/povray/.github/actions/unix_check_repo@master |
| 34 | + |
| 35 | + - name: 'Configure' |
| 36 | + uses: c-lipka/povray/.github/actions/unix_configure@master |
| 37 | + - name: 'Sanity-Check Working Tree' |
| 38 | + uses: c-lipka/povray/.github/actions/unix_check_repo@master |
| 39 | + |
| 40 | + - name: 'Bundle Artifacts for Diagnostics' |
| 41 | + if: ${{ always() }} |
| 42 | + uses: c-lipka/povray/.github/actions/unix_bundle_ignored@master |
| 43 | + with: |
| 44 | + name: artifact_diag_unix.tar |
| 45 | + |
| 46 | + - name: 'Build' |
| 47 | + uses: c-lipka/povray/.github/actions/unix_make@master |
| 48 | + - name: 'Sanity-Check Working Tree' |
| 49 | + uses: c-lipka/povray/.github/actions/unix_check_repo@master |
| 50 | + |
| 51 | + - name: 'Check Functionality' |
| 52 | + uses: c-lipka/povray/.github/actions/unix_make@master |
| 53 | + with: |
| 54 | + make-target: check |
| 55 | + - name: 'Sanity-Check Working Tree' |
| 56 | + uses: c-lipka/povray/.github/actions/unix_check_repo@master |
| 57 | + |
| 58 | +# - name: 'Install' |
| 59 | +# uses: c-lipka/povray/.github/actions/unix_make@master |
| 60 | +# with: |
| 61 | +# make-target: install |
| 62 | +# - name: 'Sanity-Check Working Tree' |
| 63 | +# uses: c-lipka/povray/.github/actions/unix_check_repo@master |
| 64 | + |
| 65 | + - name: 'Upload Artifacs for Diagnostics' |
| 66 | + if: ${{ failure() }} |
| 67 | + uses: actions/upload-artifact@v2 |
| 68 | + with: |
| 69 | + name: artifact_diag_unix |
| 70 | + path: artifact_diag_unix.tar |
| 71 | + |
| 72 | + # TODO: Maybe do some basic installation checking. |
| 73 | + |
| 74 | + build_windows: |
| 75 | + name: 'Windows Build Test' |
| 76 | + runs-on: windows-latest |
| 77 | + steps: |
| 78 | + |
| 79 | + - name: 'Check out Repository' |
| 80 | + uses: actions/checkout@v2 |
| 81 | + |
| 82 | + - name: 'Add MSBuild to PATH' |
| 83 | + |
| 84 | + |
| 85 | + - name: 'Build' |
| 86 | + uses: c-lipka/povray/.github/actions/windows_build@master |
| 87 | + with: |
| 88 | + pov-ray-build-id: gh${{github.run_number}} |
| 89 | + solution: vs2015 |
| 90 | + configuration: Release |
| 91 | + platform: x64 |
| 92 | + toolset: v142 |
| 93 | + msbuild-options: '' |
| 94 | + - name: 'Sanity-Check Working Tree' |
| 95 | + uses: c-lipka/povray/.github/actions/unix_check_repo@master |
0 commit comments