4444 include :
4545 - os : ubuntu-20.04
4646 rustc : 1.60.0 # Oldest supported version, keep in sync with README.md
47- - os : ubuntu-18 .04
47+ - os : ubuntu-22 .04
4848 rustc : 1.60.0
4949 extra_desc : dist-server
5050 extra_args : --no-default-features --features=dist-tests test_dist_ -- --test-threads 1
8787 - name : Run tests
8888 run : cargo test --locked --all-targets --verbose ${{ matrix.extra_args }}
8989
90+ - name : Upload failure
91+ if : failure()
92+ uses : ./.github/actions/artifact_failure
93+ with :
94+ name : test-${{ matrix.os }}-${{ matrix.rustc || 'stable' }}-${{ matrix.extra_desc }}
95+
9096 build :
9197 name : build ${{ matrix.binary || 'sccache' }} ${{ matrix.target }}
9298 runs-on : ${{ matrix.os }}
@@ -182,10 +188,10 @@ jobs:
182188 extra_args : --features=unstable
183189 - os : macOS-11
184190 rustc : nightly
185- # Disable on Windows for now as it fails with:
186- # found invalid metadata files for crate `vte_generate_state_changes`
187- # - os: windows-2019
188- # rustc: nightly
191+ # Disable on Windows for now as it fails with:
192+ # found invalid metadata files for crate `vte_generate_state_changes`
193+ # - os: windows-2019
194+ # rustc: nightly
189195 env :
190196 RUST_BACKTRACE : 1
191197 steps :
@@ -207,9 +213,9 @@ jobs:
207213 - name : Execute tests
208214 run : cargo test --no-fail-fast --locked --all-targets --verbose ${{ matrix.extra_args }}
209215 env :
210- CARGO_INCREMENTAL : ' 0 '
211- RUSTC_WRAPPER : ' '
212- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off'
216+ CARGO_INCREMENTAL : " 0 "
217+ RUSTC_WRAPPER : " "
218+ RUSTFLAGS : " -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off"
213219
214220 - name : Generate coverage data (via `grcov`)
215221 id : coverage
@@ -245,53 +251,58 @@ jobs:
245251 matrix :
246252 job :
247253 - { os: macos-12 }
248- release : [ "13.1" ]
254+ release : ["13.1"]
249255 steps :
250- - uses : actions/checkout@v3
251- - name : Prepare, build and test
252- uses : vmactions/freebsd-vm@v0
253- with :
254- mem : 8192
255- usesh : true
256- copyback : false
257- prepare : pkg install -y ca_root_nss curl gmake gtar pot sudo
258- run : |
259- #####################################################################################
260- ### Prepare, build, and test
261- #####################################################################################
262- ### based on ref: <https://github.com/rust-lang/rustup/pull/2783>
263- ### and on ref: <https://github.com/uutils/coreutils/commit/86c610a84b8b6c>
264- ### * NOTE: All steps need to be run in this block, otherwise, we are operating back
265- ### on the mac host.
266- set -exo pipefail
267- #
268- ### Basic user setup ################################################################
269- TEST_USER=tester
270- TEST_USER_HOME="/opt/$TEST_USER"
271- REPO_NAME=${GITHUB_WORKSPACE##*/}
272- WORKSPACE_PARENT="/Users/runner/work/${REPO_NAME}"
273- WORKSPACE="${WORKSPACE_PARENT}/${REPO_NAME}"
274- export WORKSPACE
275- #
276- mkdir -p "$TEST_USER_HOME"
277- pw adduser -n "$TEST_USER" -d "$TEST_USER_HOME" -c "Tester" -h -
278- chown -R "$TEST_USER":"$TEST_USER" "$TEST_USER_HOME"
279- chown -R "$TEST_USER":"$TEST_USER" "/$WORKSPACE_PARENT"/
280- cat > /usr/local/etc/sudoers.d/wheel<<EOF
281- $TEST_USER ALL=(ALL) NOPASSWD: ALL
282- EOF
283- #
284- ### Install rust stable from rustup ################################################
285- su "$TEST_USER" -c "/bin/sh -exo pipefail" <<"EOH"
286- whoami
287- echo "$HOME"
288- fetch -o /tmp/rustup.sh https://sh.rustup.rs
289- sh /tmp/rustup.sh -y --profile=minimal
290- ### Run tests #######################################################################
291- . "$HOME/.cargo/env"
292- "$WORKSPACE/scripts/freebsd-ci-test.sh"
293- EOH
294- # end
256+ - uses : actions/checkout@v3
257+ - name : Prepare, build and test
258+ uses : vmactions/freebsd-vm@v0
259+ with :
260+ mem : 8192
261+ usesh : true
262+ copyback : false
263+ prepare : pkg install -y ca_root_nss curl gmake gtar pot sudo
264+ run : |
265+ #####################################################################################
266+ ### Prepare, build, and test
267+ #####################################################################################
268+ ### based on ref: <https://github.com/rust-lang/rustup/pull/2783>
269+ ### and on ref: <https://github.com/uutils/coreutils/commit/86c610a84b8b6c>
270+ ### * NOTE: All steps need to be run in this block, otherwise, we are operating back
271+ ### on the mac host.
272+ set -exo pipefail
273+ #
274+ ### Basic user setup ################################################################
275+ TEST_USER=tester
276+ TEST_USER_HOME="/opt/$TEST_USER"
277+ REPO_NAME=${GITHUB_WORKSPACE##*/}
278+ WORKSPACE_PARENT="/Users/runner/work/${REPO_NAME}"
279+ WORKSPACE="${WORKSPACE_PARENT}/${REPO_NAME}"
280+ export WORKSPACE
281+ #
282+ mkdir -p "$TEST_USER_HOME"
283+ pw adduser -n "$TEST_USER" -d "$TEST_USER_HOME" -c "Tester" -h -
284+ chown -R "$TEST_USER":"$TEST_USER" "$TEST_USER_HOME"
285+ chown -R "$TEST_USER":"$TEST_USER" "/$WORKSPACE_PARENT"/
286+ cat > /usr/local/etc/sudoers.d/wheel<<EOF
287+ $TEST_USER ALL=(ALL) NOPASSWD: ALL
288+ EOF
289+ #
290+ ### Install rust stable from rustup ################################################
291+ su "$TEST_USER" -c "/bin/sh -exo pipefail" <<"EOH"
292+ whoami
293+ echo "$HOME"
294+ fetch -o /tmp/rustup.sh https://sh.rustup.rs
295+ sh /tmp/rustup.sh -y --profile=minimal
296+ ### Run tests #######################################################################
297+ . "$HOME/.cargo/env"
298+ "$WORKSPACE/scripts/freebsd-ci-test.sh"
299+ EOH
300+ # end
301+ - name : Upload failure
302+ if : failure()
303+ uses : ./.github/actions/artifact_failure
304+ with :
305+ name : test-freebsd-13.1-stable
295306
296307 release :
297308 name : release
0 commit comments