Use rust nightly for CI tests #598
Workflow file for this run
This file contains 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: Rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Switch back to stable when 1.73.0 is released | |
- name: Get latest version of nightly rust | |
run: | | |
rustup update nightly | |
rustup default nightly | |
- name: Build and Test (minimal preset) | |
working-directory: bindings/rust | |
run: cargo test --all --release --features="minimal-spec" --tests | |
- name: Build and Test (mainnet preset) | |
working-directory: bindings/rust | |
run: cargo test --all --release --tests | |
- name: Benchmark | |
working-directory: bindings/rust | |
run: cargo bench |