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
6163 TEST_USER=tester
6264 REPO_NAME=${GITHUB_WORKSPACE##*/}
6365 WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
@@ -144,6 +146,8 @@ jobs:
144146 df -h
145147 rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* &
146148 pkg_add curl gmake sudo-- jq rust llvm--
149+ sudo mount_mfs -s 4194304 -o softdep,noatime /tmp && sudo chmod 1777 /tmp
150+ sudo mount -u -o softdep,noatime /
147151 # Clean up package cache after installation
148152 pkg_delete -a &
149153 df -h
@@ -152,7 +156,7 @@ jobs:
152156 # implementation modelled after ref: <https://github.com/rust-lang/rustup/pull/2783>
153157 # * NOTE: All steps need to be run in this block, otherwise, we are operating back on the mac host
154158 set -e
155- #
159+ export CARGO_TARGET_DIR=/tmp/cargo-target
156160 TEST_USER=tester
157161 REPO_NAME=${GITHUB_WORKSPACE##*/}
158162 WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
@@ -199,7 +203,7 @@ jobs:
199203 export RUST_BACKTRACE=1
200204 export CARGO_TERM_COLOR=always
201205 # Avoid filling disk space
202- export RUSTFLAGS="-C strip=symbols"
206+ export RUSTFLAGS="-C debuginfo=1 -C strip=symbols"
203207 # Use cargo test since nextest might not support OpenBSD
204208 if (test -z "\$FAULT"); then cargo test --features '${{ matrix.job.features }}' || FAULT=1 ; fi
205209 # There is no systemd-logind on OpenBSD, so test all features except feat_systemd_logind
0 commit comments