Skip to content

Commit 319315c

Browse files
authored
Merge pull request uutils#5606 from piotrkwiecinski/freebsd-vm
Bump freebsd-vm action to v1.0.2 & use ubuntu
2 parents 9061b2b + c6e7fdc commit 319315c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/freebsd.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
job:
28-
- { os: macos-12 , features: unix } ## GHA MacOS-11.0 VM won't have VirtualBox; refs: <https://github.com/actions/virtual-environments/issues/4060> , <https://github.com/actions/virtual-environments/pull/4010>
28+
- { os: ubuntu-22.04 , features: unix }
2929
env:
3030
SCCACHE_GHA_ENABLED: "true"
3131
RUSTC_WRAPPER: "sccache"
@@ -35,9 +35,11 @@ jobs:
3535
- name: Run sccache-cache
3636
uses: mozilla-actions/sccache-action@v0.0.3
3737
- name: Prepare, build and test
38-
uses: vmactions/freebsd-vm@v0.3.1
38+
uses: vmactions/freebsd-vm@v1.0.2
3939
with:
4040
usesh: true
41+
sync: rsync
42+
copyback: false
4143
# We need jq to run show-utils.sh and bash to use inline shell string replacement
4244
prepare: pkg install -y curl sudo jq bash
4345
run: |
@@ -48,11 +50,11 @@ jobs:
4850
#
4951
TEST_USER=tester
5052
REPO_NAME=${GITHUB_WORKSPACE##*/}
51-
WORKSPACE_PARENT="/Users/runner/work/${REPO_NAME}"
53+
WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
5254
WORKSPACE="${WORKSPACE_PARENT}/${REPO_NAME}"
5355
#
5456
pw adduser -n ${TEST_USER} -d /root/ -g wheel -c "Coreutils user to build" -w random
55-
chown -R ${TEST_USER}:wheel /root/ "/Users/runner/work/${REPO_NAME}"/
57+
chown -R ${TEST_USER}:wheel /root/ "${WORKSPACE_PARENT}"/
5658
whoami
5759
#
5860
# Further work needs to be done in a sudo as we are changing users
@@ -114,7 +116,7 @@ jobs:
114116
fail-fast: false
115117
matrix:
116118
job:
117-
- { os: macos-12 , features: unix } ## GHA MacOS-11.0 VM won't have VirtualBox; refs: <https://github.com/actions/virtual-environments/issues/4060> , <https://github.com/actions/virtual-environments/pull/4010>
119+
- { os: ubuntu-22.04 , features: unix }
118120
env:
119121
mem: 4096
120122
SCCACHE_GHA_ENABLED: "true"
@@ -125,10 +127,11 @@ jobs:
125127
- name: Run sccache-cache
126128
uses: mozilla-actions/sccache-action@v0.0.3
127129
- name: Prepare, build and test
128-
uses: vmactions/freebsd-vm@v0.3.1
130+
uses: vmactions/freebsd-vm@v1.0.2
129131
with:
130132
usesh: true
131-
# sync: sshfs
133+
sync: rsync
134+
copyback: false
132135
prepare: pkg install -y curl gmake sudo
133136
run: |
134137
## Prepare, build, and test
@@ -141,12 +144,12 @@ jobs:
141144
#
142145
TEST_USER=tester
143146
REPO_NAME=${GITHUB_WORKSPACE##*/}
144-
WORKSPACE_PARENT="/Users/runner/work/${REPO_NAME}"
147+
WORKSPACE_PARENT="/home/runner/work/${REPO_NAME}"
145148
WORKSPACE="${WORKSPACE_PARENT}/${REPO_NAME}"
146149
#
147150
pw adduser -n ${TEST_USER} -d /root/ -g wheel -c "Coreutils user to build" -w random
148151
# chown -R ${TEST_USER}:wheel /root/ "${WORKSPACE_PARENT}"/
149-
chown -R ${TEST_USER}:wheel /root/ "/Users/runner/work/${REPO_NAME}"/
152+
chown -R ${TEST_USER}:wheel /root/ "${WORKSPACE_PARENT}"/
150153
whoami
151154
#
152155
# Further work needs to be done in a sudo as we are changing users

tests/by-util/test_cp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ fn test_cp_target_directory_is_file() {
257257
}
258258

259259
#[test]
260+
// FixMe: for FreeBSD, flaky test; track repair progress at GH:uutils/coreutils/issue/4725
261+
#[cfg(not(target_os = "freebsd"))]
260262
fn test_cp_arg_update_interactive() {
261263
new_ucmd!()
262264
.arg(TEST_HELLO_WORLD_SOURCE)

0 commit comments

Comments
 (0)