Moved fsl and mavis to new commits #775
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
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: 'Reason for manual run' | |
| required: false | |
| default: 'Testing Git SHA output' | |
| env: | |
| CACHE_VERSION: v1 | |
| name: Regress Olympia on Ubuntu | |
| jobs: | |
| build_test_job: | |
| strategy: | |
| # Strategy is a matrix of debug and release builds/regression | |
| matrix: | |
| os: [ubuntu-latest] | |
| BUILD_TYPE: [Debug,Release] | |
| COMPILER: [gcc,clang] | |
| name: Ubuntu-${{ matrix.BUILD_TYPE }}-${{matrix.COMPILER}} | |
| runs-on: ${{ matrix.os }} | |
| # Set up a global environment variable for build scripts | |
| env: | |
| OLYMPIA_BUILD_TYPE: ${{ matrix.BUILD_TYPE }} | |
| COMPILER: ${{ matrix.COMPILER }} | |
| steps: | |
| # Get Olympia | |
| - name: Checkout Olympia | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| # Get Sparta | |
| - name: Checkout Sparta | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: sparcians/map | |
| path: map | |
| ref: map_v2.2.3 | |
| submodules: recursive | |
| # Setup build environment | |
| - name: Grab Python v3.8 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3.8 | |
| # Setup CCache to cache builds | |
| - name: ccache | |
| uses: hendrikmuhs/ccache-action@v1.2 | |
| with: | |
| key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-${{ github.ref_name }} | |
| restore-keys: | | |
| ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-master | |
| ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache | |
| # Install missing packages to make everything build | |
| - name: Install packages needed for sparta/olympia | |
| run: | | |
| sudo apt-get update --fix-missing | |
| sudo apt-get install libboost-all-dev libyaml-cpp-dev rapidjson-dev libhdf5-dev llvm lld | |
| # Build | |
| - name: Build & Regress | |
| run: ./.github/actions/build/entrypoint.sh | |
| # Save error logs, etc | |
| - name: Save artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: ErrorLogs-${{matrix.BUILD_TYPE}}-${{matrix.COMPILER}} | |
| path: ${{matrix.BUILD_TYPE}}/test/ | |
| #- name: CTest | |
| # # Run CTests without Valgrind tests otherwise the runtime will be TOO long | |
| # if: ${{ env.DABBLE_BUILD_TYPE == 'release' }} && ${{ env.VALGRIND == 'false' }} | |
| # uses: ./.github/actions/ctest # Uses an action.yml in directory |