Update and simplify Github Action for regression testing. #7
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: Release | |
| on: | |
| push: | |
| # Trigger on version tags: v4.10 etc. | |
| tags: | |
| - 'v*' | |
| # TEMP | |
| pull_request: | |
| branches: [ master ] | |
| # Allows manual triggering | |
| workflow_dispatch: | |
| inputs: | |
| do_publish: | |
| description: 'Actually publish to GitHub Releases?' | |
| required: true | |
| type: boolean | |
| default: false | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| artifact_name: prism-linux64 | |
| # - os: macos-latest | |
| # artifact_name: prism-macos64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Build | |
| shell: bash | |
| working-directory: ./prism | |
| run: | | |
| make release | |
| pwd | |
| find . -name '*.gz' | |
| find ../.. -name '*.gz' | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact_name }} | |
| path: prism/release/*.tar.gz | |
| test_release: | |
| needs: build | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| artifact: prism-linux64 | |
| # - os: macos-latest | |
| # artifact: prism-macos64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: test-dir | |
| - name: Verify download | |
| run: ls -R test-dir/ | |
| - name: Build and run smoke test | |
| shell: bash | |
| working-directory: ./test-dir | |
| run: | | |
| tar -xzf prism*.tar.gz | |
| rm prism*.tar.gz | |
| cd prism-* | |
| ./install.sh | |
| etc/tests/run.sh |