6
6
branches :
7
7
- master
8
8
schedule :
9
- - cron : ' 0 2 * * * '
9
+ - cron : ' 0 2 * * 0 '
10
10
11
11
env :
12
- RUSTFLAGS : -D warnings
12
+ CARGO_INCREMENTAL : 0
13
+ CARGO_NET_RETRY : 10
14
+ CARGO_TERM_COLOR : always
13
15
RUST_BACKTRACE : 1
16
+ RUSTFLAGS : -D warnings
17
+ RUSTDOCFLAGS : -D warnings
18
+ RUSTUP_MAX_RETRIES : 10
19
+
20
+ defaults :
21
+ run :
22
+ shell : bash
14
23
15
24
jobs :
16
25
test :
51
60
for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do
52
61
cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/x86_64-pc-windows-gnu/lib"
53
62
done
54
- shell : bash
55
63
- run : cargo build --target ${{ matrix.target }} --all --all-features --all-targets
56
64
- run : cargo test --target ${{ matrix.target }}
57
65
@@ -82,21 +90,34 @@ jobs:
82
90
- name : iOS
83
91
if : startsWith(matrix.os, 'macos')
84
92
run : cross build --target aarch64-apple-ios
85
- # - name: illumos
86
- # if: startsWith(matrix.os, 'ubuntu')
87
- # run: cross build --target x86_64-unknown-illumos
93
+ - name : Linux x32
94
+ if : startsWith(matrix.os, 'ubuntu')
95
+ run : cross check --target x86_64-unknown-linux-gnux32
96
+ - name : Fuchsia
97
+ if : startsWith(matrix.os, 'ubuntu')
98
+ run : |
99
+ rustup target add x86_64-fuchsia
100
+ cargo build --target x86_64-fuchsia
101
+ - name : illumos
102
+ if : startsWith(matrix.os, 'ubuntu')
103
+ run : |
104
+ rustup target add x86_64-unknown-illumos
105
+ cargo build --target x86_64-unknown-illumos
88
106
89
107
msrv :
90
- runs-on : ubuntu-latest
108
+ runs-on : ${{ matrix.os }}
91
109
strategy :
110
+ fail-fast : false
92
111
matrix :
112
+ os : [ubuntu-latest, windows-latest]
93
113
# When updating this, the reminder to update the minimum supported
94
114
# Rust version in Cargo.toml.
95
115
rust : ['1.48']
96
116
steps :
97
117
- uses : actions/checkout@v3
98
118
- name : Install Rust
99
- run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
119
+ # --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
120
+ run : rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
100
121
- run : cargo build
101
122
102
123
clippy :
@@ -119,6 +140,7 @@ jobs:
119
140
runs-on : ubuntu-latest
120
141
steps :
121
142
- uses : actions/checkout@v3
122
- - uses : actions-rs/audit-check@v1
143
+ # https://github.com/rustsec/audit-check/issues/2
144
+ - uses : rustsec/audit-check@master
123
145
with :
124
146
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments