-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 884 Bytes
/
Copy pathrust.yml
File metadata and controls
34 lines (29 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
strategy:
matrix:
platform: [ ubuntu-latest ] #, macos-latest, windows-latest ]
toolchain:
- nightly
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Rustup update
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
# if we ever need a c compiler under windows
# - name: Run tests (windows)
# if: matrix.platform == 'windows-latest'
# run: |
# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
# cargo test --verbose
# shell: cmd