Update to Rust 2024, pin cxxbridge version, cleanup #28
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: build and test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: install cxxbridge | |
| # When changing this version, also change it in Cargo.toml | |
| run: cargo install cxxbridge-cmd@=1.0.190 | |
| - name: install just | |
| run: cargo install just | |
| - name: Compile test | |
| run: just build_test | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose | |
| macos: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: install cxxbridge | |
| # When changing this version, also change it in Cargo.toml | |
| run: cargo install cxxbridge-cmd@=1.0.190 | |
| - name: install just | |
| run: cargo install just | |
| - name: Compile test | |
| run: just build_test | |
| - name: Build | |
| run: cargo build --verbose | |
| # - name: Run tests | |
| # run: cargo test --verbose | |
| linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: install cxxbridge | |
| # When changing this version, also change it in Cargo.toml | |
| run: cargo install cxxbridge-cmd@=1.0.190 | |
| - name: install just | |
| run: cargo install just | |
| - name: Compile test | |
| run: just build_test | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose |