Skip to content

Commit 30ea61a

Browse files
committed
[#347] WIP: FreeBSD CI test
1 parent 8100321 commit 30ea61a

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,3 +533,24 @@ jobs:
533533
steps:
534534
- name: Mandatory Checks Sync
535535
run: echo "Sync point for collecting mandatory checks that need to pass for Pull-Requests"
536+
537+
freebsd:
538+
runs-on: ubuntu-latest
539+
timeout-minutes: 60
540+
strategy:
541+
matrix:
542+
freebsd_version: [ "15.0" ]
543+
toolchain: [ "stable"]
544+
mode: ["debug"]
545+
steps:
546+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
547+
- uses: vmactions/freebsd-vm@b9c3f24600acdef618ef1c9e2d3c6eeda4dce712 # ratchet:vmactions/[email protected]
548+
with:
549+
release: ${{ matrix.freebsd_version }}
550+
mem: 16384
551+
copyback: false
552+
prepare: pkg install -y cmake curl gcc git llvm
553+
run: |
554+
git config --global --add safe.directory /home/runner/work/iceoryx2/iceoryx2
555+
./internal/scripts/ci_prepare_freebsd.sh
556+
./internal/scripts/ci_build_and_test_freebsd.sh --toolchain ${{ matrix.toolchain }} --mode ${{ matrix.mode }}

.github/workflows/nightly.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
timeout-minutes: 60
112112
strategy:
113113
matrix:
114-
freebsd_version: [ "15.0" ]
114+
freebsd_version: [ "14.3" ]
115115
toolchain: [ "stable"]
116116
mode: ["debug"]
117117
steps:
@@ -121,8 +121,11 @@ jobs:
121121
release: ${{ matrix.freebsd_version }}
122122
mem: 16384
123123
copyback: false
124+
sync: nfs
124125
prepare: pkg install -y cmake curl gcc git llvm
125126
run: |
126-
git config --global --add safe.directory /home/runner/work/iceoryx2/iceoryx2
127+
cp -r ${{ github.workspace }} $HOME/workspace
128+
cd $HOME/workspace
129+
git config --global --add safe.directory $HOME/workspace
127130
./internal/scripts/ci_prepare_freebsd.sh
128131
./internal/scripts/ci_build_and_test_freebsd.sh --toolchain ${{ matrix.toolchain }} --mode ${{ matrix.mode }}

internal/scripts/ci_build_and_test_freebsd.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,18 @@ echo
7474
export PATH=$PATH:$HOME/.cargo/bin
7575
rustup default $RUST_TOOLCHAIN
7676
# export RUSTFLAGS="-C debug-assertions"
77-
cargo fmt --all -- --check
78-
cargo clippy --workspace --exclude iceoryx2-tunnels-zenoh -- -D warnings
7977

8078
echo "###################"
8179
echo "# Run cargo build #"
8280
echo "###################"
8381

84-
cargo build --workspace --exclude iceoryx2-tunnels-zenoh --all-targets $RUST_BUILD_TYPE_FLAG
82+
cargo build --workspace --exclude iceoryx2-tunnel-zenoh --all-targets $RUST_BUILD_TYPE_FLAG
8583

8684
echo "######################"
8785
echo "# Run cargo nextest #"
8886
echo "#####################"
8987

90-
cargo nextest run --workspace --exclude iceoryx2-tunnels-zenoh --all-targets --no-fail-fast $RUST_BUILD_TYPE_FLAG
88+
cargo nextest run --workspace --exclude iceoryx2-tunnel-zenoh --all-targets --no-fail-fast $RUST_BUILD_TYPE_FLAG
9189

9290
echo "###########################################################"
9391
echo "# Clean the target directory to reduce memory usage on VM #"

internal/scripts/ci_prepare_freebsd.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export ASSUME_ALWAYS_YES=yes
1818
pkg install python3 bash
1919
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --no-modify-path
2020
export PATH=$PATH:$HOME/.cargo/bin
21-
rustup toolchain add beta nightly 1.83.0 stable
22-
rustup component add clippy rustfmt
21+
rustup toolchain add stable
2322
rustup default stable
2423
cargo install cargo-nextest --locked
2524
pw useradd testuser1

0 commit comments

Comments
 (0)