chore: Add rust dependencies to gh-actions #110
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: Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| - main | |
| pull_request: | |
| branches: | |
| - trunk | |
| - main | |
| env: | |
| CTEST_OUTPUT_ON_FAILURE: 1 | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: "ubuntu-24.04" | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - uses: actions/cache@v3 | |
| if: always() | |
| with: | |
| key: ${{ matrix.os }}-packages | |
| path: | | |
| "build/vcpkg_installed/**/*" | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| - name: install dependencies | |
| run: | | |
| sudo apt-get install -y \ | |
| autoconf \ | |
| autoconf-archive \ | |
| automake \ | |
| build-essential \ | |
| ninja-build | |
| - name: Install rust dependencies | |
| run: | | |
| cargo install wasm-tools wit-bindgen-cli | |
| - name: configure | |
| run: | | |
| cmake --preset linux-ninja-Debug | |
| - name: build | |
| run: | | |
| cmake --build --preset linux-ninja-Debug | |
| - name: test | |
| working-directory: build | |
| run: | | |
| ctest -VV | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5.4.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload error logs | |
| if: ${{ failure() || cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-logs | |
| path: ./**/*.log |