Skip to content

Commit ffb3332

Browse files
committed
*bsd.yml: Try to boost CI
1 parent a877f6b commit ffb3332

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/freebsd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
prepare: pkg install -y curl sudo jq coreutils bash
4545
run: |
4646
## Prepare, build, and test
47+
sudo mount -u -o noatime /
4748
# implementation modelled after ref: <https://github.com/rust-lang/rustup/pull/2783>
4849
# * NOTE: All steps need to be run in this block, otherwise, we are operating back on the mac host
4950
set -e
@@ -134,6 +135,7 @@ jobs:
134135
prepare: pkg install -y curl gmake sudo jq
135136
run: |
136137
## Prepare, build, and test
138+
sudo mount -u -o noatime /
137139
# implementation modelled after ref: <https://github.com/rust-lang/rustup/pull/2783>
138140
# * NOTE: All steps need to be run in this block, otherwise, we are operating back on the mac host
139141
set -e

.github/workflows/openbsd.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 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

55
env:
66
# * style job configuration
@@ -48,6 +48,8 @@ jobs:
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 &
@@ -57,7 +59,9 @@ jobs:
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

Comments
 (0)