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
@@ -182,10 +182,10 @@ jobs:
182182 extra_args : --features=unstable
183183 - os : macOS-11
184184 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
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
189189 env :
190190 RUST_BACKTRACE : 1
191191 steps :
@@ -207,9 +207,9 @@ jobs:
207207 - name : Execute tests
208208 run : cargo test --no-fail-fast --locked --all-targets --verbose ${{ matrix.extra_args }}
209209 env :
210- CARGO_INCREMENTAL : ' 0 '
211- RUSTC_WRAPPER : ' '
212- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off'
210+ CARGO_INCREMENTAL : " 0 "
211+ RUSTC_WRAPPER : " "
212+ RUSTFLAGS : " -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off"
213213
214214 - name : Generate coverage data (via `grcov`)
215215 id : coverage
@@ -245,53 +245,53 @@ jobs:
245245 matrix :
246246 job :
247247 - { os: macos-12 }
248- release : [ "13.1" ]
248+ release : ["13.1"]
249249 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
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
295295
296296 release :
297297 name : release
0 commit comments