-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.81 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
paths: ["**.rs", "**.toml", "**/ci.yml"]
pull_request:
paths: ["**.rs", "**.toml", "**/ci.yml"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C target-cpu=native"
jobs:
ubuntu:
name: full check on ubuntu (${{ matrix.toolchain }} channel)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: switch to ${{ matrix.toolchain }} channel and download mold
run: |
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
rustup component add rustfmt clippy
sudo apt-get update && sudo apt-get install mold
- name: build
run: mold -run cargo b -v
- name: test
run: mold -run cargo t -v
macos:
name: full check on macos (${{ matrix.toolchain }} channel)
runs-on: macos-14
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
- name: switch to ${{ matrix.toolchain }} channel
run: |
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
rustup component add rustfmt clippy
- name: test (no std)
run: cargo t -v --no-default-features
- name: test
run: cargo t -v
msys2:
name: full check on windows (msys2 - ${{ matrix.sys }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
sys: [CLANG64, UCRT64]
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.sys }}
pacboy: rust
- name: build
run: msys2 -c 'cargo b -v'
- name: test
run: msys2 -c 'cargo t -v'