fix path #65
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: Linux Compile | |
| on: | |
| push: | |
| branches: [ "*" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| config: [Release, Debug] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get install cmake ninja-build libbz2-dev | |
| - name: Build | |
| run: | | |
| cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
| cmake --build build-cmake -j | |
| - name: Create Package | |
| run: | | |
| mkdir prism-release | |
| cp build-cmake/prism prism-release/ | |
| cp "$(ldconfig -p | grep libbz2.so.1.0 | tr ' ' '\n' | grep /| head -n1)" prism-release/ | |
| - name: Publish packaged artifacts | |
| if: ${{ matrix.config == 'Release' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: prism-linux-x64 | |
| path: prism-release | |
| - name: Test | |
| continue-on-error: true | |
| run: | | |
| cd build-cmake | |
| ctest -j | |
| - name: Echo Test Results | |
| run: cat build-cmake/Testing/Temporary/LastTest.log |