1
- name : Test libloading
1
+ name : libloading
2
2
3
3
on :
4
4
push :
5
5
paths-ignore :
6
6
- ' *.mkd'
7
7
- ' LICENSE'
8
+ branches :
9
+ - master
8
10
pull_request :
9
11
types : [opened, repoened, synchronize]
10
12
19
21
timeout-minutes : 20
20
22
steps :
21
23
- uses : actions/checkout@v2
24
+ - name : Set cfg(ci)
25
+ run : echo "RUSTFLAGS=--cfg ci" >> $GITHUB_ENV
22
26
- name : Install Rust ${{ matrix.rust_toolchain }}
23
27
uses : actions-rs/toolchain@v1
24
28
with :
58
62
env :
59
63
RUSTDOCFLAGS : --cfg docsrs
60
64
if : ${{ matrix.rust_toolchain == 'nightly' }}
65
+ - name : Update Minimal Versions
66
+ uses : actions-rs/cargo@v1
67
+ with :
68
+ command : update
69
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
70
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
71
+ - name : Test Minimal Versions
72
+ uses : actions-rs/cargo@v1
73
+ with :
74
+ command : test
75
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options -- --nocapture
76
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
61
77
62
78
windows-gnu-test :
63
79
runs-on : windows-latest
70
86
- i686-pc-windows-gnu
71
87
steps :
72
88
- uses : actions/checkout@v2
89
+ - name : Set cfg(ci)
90
+ run : echo "RUSTFLAGS=--cfg ci" >> $GITHUB_ENV
73
91
- name : Add MSYS2 to the PATH
74
92
run : echo "c:/msys64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
75
93
- name : Add 32-bit mingw-w64 to the PATH
78
96
- name : Add 64-bit mingw-w64 to the PATH
79
97
run : echo "c:/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
80
98
if : startsWith(matrix.rust_target, 'x86_64')
81
- - name : Set TARGET variable
99
+ - name : Set $ TARGET
82
100
run : echo "TARGET=${{ matrix.rust_target}}" | Out-File -FilePath $env:GITHUB_ENV -Append
83
101
- name : Install Rust nightly
84
102
uses : actions-rs/toolchain@v1
@@ -87,32 +105,59 @@ jobs:
87
105
target : ${{ matrix.rust_target }}
88
106
profile : minimal
89
107
default : true
90
- - uses : actions-rs/cargo@v1
108
+ - name : Update
109
+ uses : actions-rs/cargo@v1
91
110
with :
92
- command : build
93
- args : --target ${{ matrix.rust_target }} -- manifest-path=Cargo.toml
111
+ command : update
112
+ args : --manifest-path=Cargo.toml
94
113
- uses : actions-rs/cargo@v1
95
114
with :
96
115
command : test
97
116
args : --target ${{ matrix.rust_target }} --manifest-path=Cargo.toml
117
+ - name : Update Minimal Versions
118
+ uses : actions-rs/cargo@v1
119
+ with :
120
+ command : update
121
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
122
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
123
+ - name : Test Minimal Versions
124
+ uses : actions-rs/cargo@v1
125
+ with :
126
+ command : test
127
+ args : --target ${{ matrix.rust_target }} --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options -- --nocapture
128
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
98
129
99
130
bare-cross-build :
100
131
runs-on : ubuntu-latest
101
132
strategy :
102
133
fail-fast : false
103
134
matrix :
104
135
rust_target :
105
- # BSDs: could be tested with full system emulation
106
- # - x86_64-unknown-dragonfly
107
- # - x86_64-unknown-freebsd
136
+ - aarch64-unknown-linux-gnu
137
+ - arm-unknown-linux-gnueabihf
138
+ - mips64-unknown-linux-gnuabi64
139
+ - mips-unknown-linux-gnu
140
+ - powerpc64le-unknown-linux-gnu
141
+ - powerpc64-unknown-linux-gnu
142
+ - powerpc-unknown-linux-gnu
143
+ - riscv64gc-unknown-linux-gnu
144
+ - s390x-unknown-linux-gnu
145
+ - sparc64-unknown-linux-gnu
146
+ - sparcv9-sun-solaris
147
+ - x86_64-fuchsia
148
+ - x86_64-unknown-dragonfly
149
+ - x86_64-unknown-freebsd
108
150
- x86_64-unknown-haiku
109
- # - x86_64-unknown-netbsd
151
+ - x86_64-unknown-netbsd
110
152
- x86_64-unknown-openbsd
111
153
- x86_64-unknown-redox
112
- - x86_64-fuchsia
113
154
timeout-minutes : 20
114
155
steps :
115
156
- uses : actions/checkout@v2
157
+ - name : Set cfg(ci)
158
+ run : echo "RUSTFLAGS=--cfg ci" >> $GITHUB_ENV
159
+ - name : Set $TARGET
160
+ run : echo "TARGET=${{ matrix.rust_target}}" >> $GITHUB_ENV
116
161
- name : Install Rust nightly
117
162
uses : actions-rs/toolchain@v1
118
163
with :
@@ -132,6 +177,16 @@ jobs:
132
177
with :
133
178
command : build
134
179
args : --target ${{ matrix.rust_target }} --manifest-path=Cargo.toml -Zbuild-std
180
+ - name : Update Minimal Versions
181
+ uses : actions-rs/cargo@v1
182
+ with :
183
+ command : update
184
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
185
+ - name : Build Minimal Versions
186
+ uses : actions-rs/cargo@v1
187
+ with :
188
+ command : build
189
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
135
190
136
191
cross-ios-build :
137
192
runs-on : macos-latest
@@ -145,6 +200,10 @@ jobs:
145
200
timeout-minutes : 20
146
201
steps :
147
202
- uses : actions/checkout@v2
203
+ - name : Set cfg(ci)
204
+ run : echo "RUSTFLAGS=--cfg ci" >> $GITHUB_ENV
205
+ - name : Set $TARGET
206
+ run : echo "TARGET=${{ matrix.rust_target}}" >> $GITHUB_ENV
148
207
- name : Install Rust ${{ matrix.rust_toolchain }}
149
208
uses : actions-rs/toolchain@v1
150
209
with :
@@ -162,3 +221,15 @@ jobs:
162
221
with :
163
222
command : build
164
223
args : --target=${{ matrix.rust_target }} --manifest-path=Cargo.toml
224
+ - name : Update Minimal Versions
225
+ uses : actions-rs/cargo@v1
226
+ with :
227
+ command : update
228
+ args : --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
229
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
230
+ - name : Build Minimal Versions
231
+ uses : actions-rs/cargo@v1
232
+ with :
233
+ command : build
234
+ args : --target=${{ matrix.rust_target }} --manifest-path=Cargo.toml -Zminimal-versions -Zunstable-options
235
+ if : ${{ matrix.rust_toolchain == 'nightly' }}
0 commit comments