-
Notifications
You must be signed in to change notification settings - Fork 16
35 lines (35 loc) · 948 Bytes
/
rust.yml
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
35
name: Rust
on: [push, pull_request]
jobs:
stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create local branches for tests
run: |
for branch in test-root test-module-{a,b,c}; do
git branch --track "$branch" "origin/$branch"
done
- name: Build
run: cargo +stable build --verbose
- name: Run tests
run: cargo +stable test --verbose
nightly:
runs-on: ubuntu-latest
steps:
- name: Install Rust nightly
run: rustup install nightly
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create local branches for tests
run: |
for branch in test-root test-module-{a,b,c}; do
git branch --track "$branch" "origin/$branch"
done
- name: Build
run: cargo +nightly build --verbose
- name: Run tests
run: cargo +nightly test --verbose