11name : OpenBSD
22
3- # spell-checker:ignore sshfs usesh vmactions taiki Swatinem esac fdescfs fdesc sccache nextest copyback logind bindgen libclang
3+ # spell-checker:ignore debuginfo sshfs usesh vmactions softdep taiki Swatinem esac fdescfs fdesc sccache nextest copyback logind bindgen libclang
44
55env :
66 # * style job configuration
4848 # Clean up disk space before installing packages
4949 df -h
5050 pkg_add curl sudo-- jq coreutils bash rust rust-clippy rust-rustfmt llvm--
51+ sudo mount_mfs -s 4194304 -o softdep,noatime /tmp && sudo chmod 1777 /tmp
52+ sudo mount -u -o softdep,noatime /
5153 rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* &
5254 # Clean up package cache after installation
5355 pkg_delete -a &
5759 # implementation modelled after ref: <https://github.com/rust-lang/rustup/pull/2783>
5860 # * NOTE: All steps need to be run in this block, otherwise, we are operating back on the mac host
5961 set -e
60- #
62+ export CARGO_TARGET_DIR=/tmp/cargo-target
63+ # Avoid filling disk space
64+ export RUSTFLAGS="-C debuginfo=1 -C strip=symbols"
6165 TEST_USER=tester
6266 REPO_NAME=${GITHUB_WORKSPACE##*/}
6367 WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
@@ -144,6 +148,8 @@ jobs:
144148 df -h
145149 rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* &
146150 pkg_add curl gmake sudo-- jq rust llvm--
151+ sudo mount_mfs -s 4194304 -o softdep,noatime /tmp && sudo chmod 1777 /tmp
152+ sudo mount -u -o softdep,noatime /
147153 # Clean up package cache after installation
148154 pkg_delete -a &
149155 df -h
@@ -152,7 +158,7 @@ jobs:
152158 # implementation modelled after ref: <https://github.com/rust-lang/rustup/pull/2783>
153159 # * NOTE: All steps need to be run in this block, otherwise, we are operating back on the mac host
154160 set -e
155- #
161+ export CARGO_TARGET_DIR=/tmp/cargo-target
156162 TEST_USER=tester
157163 REPO_NAME=${GITHUB_WORKSPACE##*/}
158164 WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
@@ -199,7 +205,7 @@ jobs:
199205 export RUST_BACKTRACE=1
200206 export CARGO_TERM_COLOR=always
201207 # Avoid filling disk space
202- export RUSTFLAGS="-C strip=symbols"
208+ export RUSTFLAGS="-C debuginfo=1 -C strip=symbols"
203209 # Use cargo test since nextest might not support OpenBSD
204210 if (test -z "\$FAULT"); then cargo test --features '${{ matrix.job.features }}' || FAULT=1 ; fi
205211 # There is no systemd-logind on OpenBSD, so test all features except feat_systemd_logind
0 commit comments