mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
enable freebsd in the CI on gh actions
and use --features feat_os_unix (wasn't done before)
This commit is contained in:
parent
b828e922e5
commit
86c610a84b
1 changed files with 45 additions and 0 deletions
45
.github/workflows/CICD.yml
vendored
45
.github/workflows/CICD.yml
vendored
|
@ -521,6 +521,51 @@ jobs:
|
||||||
n_fails=$(echo "$output" | grep "^FAIL:\s" | wc --lines)
|
n_fails=$(echo "$output" | grep "^FAIL:\s" | wc --lines)
|
||||||
if [ $n_fails -gt 0 ] ; then echo "::warning ::${n_fails}+ test failures" ; fi
|
if [ $n_fails -gt 0 ] ; then echo "::warning ::${n_fails}+ test failures" ; fi
|
||||||
|
|
||||||
|
test_freebsd:
|
||||||
|
runs-on: macos-latest
|
||||||
|
name: Tests/FreeBSD test suite
|
||||||
|
env:
|
||||||
|
mem: 2048
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Prepare, build and test
|
||||||
|
id: test
|
||||||
|
uses: vmactions/freebsd-vm@v0.1.4
|
||||||
|
with:
|
||||||
|
usesh: true
|
||||||
|
prepare: pkg install -y curl gmake sudo
|
||||||
|
run: |
|
||||||
|
# Need to be run in the same block. Otherwise, we are back on the mac host.
|
||||||
|
set -e
|
||||||
|
pw adduser -n cuuser -d /root/ -g wheel -c "Coreutils user to build" -w random
|
||||||
|
chown -R cuuser:wheel /root/ /Users/runner/work/coreutils/
|
||||||
|
whoami
|
||||||
|
|
||||||
|
# Needs to be done in a sudo as we are changing users
|
||||||
|
sudo -i -u cuuser sh << EOF
|
||||||
|
whoami
|
||||||
|
curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
|
sh rustup.sh -y --profile=minimal
|
||||||
|
## Info
|
||||||
|
# environment
|
||||||
|
echo "## environment"
|
||||||
|
echo "CI='${CI}'"
|
||||||
|
# tooling info display
|
||||||
|
echo "## tooling"
|
||||||
|
. $HOME/.cargo/env
|
||||||
|
cargo -V
|
||||||
|
rustc -V
|
||||||
|
env
|
||||||
|
|
||||||
|
# where the files are resynced
|
||||||
|
cd /Users/runner/work/coreutils/coreutils/
|
||||||
|
cargo build
|
||||||
|
cargo test --features feat_os_unix -p uucore -p coreutils
|
||||||
|
# Clean to avoid to rsync back the files
|
||||||
|
cargo clean
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
name: Code Coverage
|
name: Code Coverage
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue