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: Windows | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| - main | |
| pull_request: | |
| branches: | |
| - trunk | |
| - main | |
| env: | |
| CTEST_OUTPUT_ON_FAILURE: 1 | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: "windows-2022" | |
| config: vcpkg-VS-17 | |
| build: VS-17-Debug | |
| 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 rust dependencies | |
| run: | | |
| cargo install wasm-tools wit-bindgen-cli | |
| - name: configure | |
| run: | | |
| cmake --preset ${{ matrix.config }} | |
| - name: build | |
| run: | | |
| cmake --build --preset ${{ matrix.build }} | |
| - name: test | |
| working-directory: build | |
| run: | | |
| ctest -C Debug -VV | |
| - name: Upload error logs | |
| if: ${{ failure() || cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-logs | |
| path: ./**/*.log |