Modernize CI #1
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: Noble CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'datasets/**' | |
| - 'docs/**' | |
| - 'matlab/**' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| - 'README.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'datasets/**' | |
| - 'docs/**' | |
| - 'matlab/**' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| - 'README.md' | |
| # enable manual trigger | |
| workflow_dispatch: | |
| # run on first day of the month | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| jobs: | |
| Build: | |
| name: Build libRSF | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: ./InstallDependencies.bash | |
| shell: bash | |
| - name: Configure | |
| run: cmake -S . -B build -DLIBRSF_BUILD_TEST=ON | |
| - name: Build | |
| run: cmake --build build -j$(getconf _NPROCESSORS_ONLN) | |
| - name: Install | |
| run: sudo cmake --install build | |
| - name: Uninstall | |
| run: sudo cmake --build build --target uninstall | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: noble-build | |
| path: build | |
| if-no-files-found: error | |
| Test: | |
| name: Test libRSF | |
| runs-on: ubuntu-24.04 | |
| needs: [Build] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Download build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: noble-build | |
| path: build | |
| - name: Install dependencies | |
| run: ./InstallDependencies.bash | |
| shell: bash | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure |