forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 952 Bytes
/
native-cargo.yaml
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
36
37
38
39
40
41
42
---
name: Cargo Native
on:
push:
branches: [main]
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
cargo-native:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, windows-2022]
toolchain: [stable]
name: ${{ matrix.os }} / ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Checkout
uses: >- # v4.1.1
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Rust toolchain
run: rustup default ${{ matrix.toolchain }}
shell: bash
- name: Build on ${{ runner.os }}
run: cargo build --all --profile=smol
- name: Test on ${{ runner.os }}
run: cargo test --all --profile=smol