Skip to content

Commit

Permalink
[eclipse-iceoryx#3] Add freebsd, update actions to v4 (support nodejs20)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Mar 26, 2024
1 parent c29d385 commit a6d9a55
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-and-cache-rust-tool/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
cat version_info
shell: bash
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -53,7 +53,7 @@ runs:
run: ${{ inputs.print-version-cmd }}
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
Expand Down
39 changes: 34 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
toolchain: [stable, 1.73.0, beta, nightly]
toolchain: [ stable, 1.73.0 ] # [stable, 1.73.0, beta, nightly]
mode: ["--release", ""]
timeout-minutes: 30
runs-on: ${{ matrix.os }}
Expand All @@ -71,21 +71,50 @@ jobs:
- name: Run cargo test
run: cargo test --workspace --no-fail-fast ${{ matrix.mode }}

aarch64:
arm:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: ["aarch64"] # ["aarch64", "armv7"]
toolchain: [ stable ] # [stable, 1.73.0, beta, nightly]
mode: ["--release", ""]
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Run commands
with:
arch: aarch64
arch: ${{ matrix.architecture }}
distro: archarm_latest
run: |
./internal/scripts/ci_prepare_archlinux.sh
rustup default ${{ matrix.toolchain }}
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo build --workspace --all-targets ${{ matrix.mode }}
cargo test --workspace --no-fail-fast ${{ matrix.mode }}
freebsd:
runs-on: ubuntu-latest
strategy:
matrix:
freebsd_version: ['14.0', '13.3']
architecture: ['x86_64', 'aarch64']
toolchain: [ stable ] # [stable, 1.73.0, beta, nightly]
mode: [""] # ["--release", ""]
steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
version: ${{ matrix.freebsd_version }}
run: |
./internal/scripts/ci_prepare_freebsd.sh
export PATH=$PATH:$HOME/.cargo/bin
rustup default ${{ matrix.toolchain }}
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo build --workspace --all-targets
cargo test --workspace --no-fail-fast
cargo build --workspace --all-targets ${{ matrix.mode }}
cargo test --workspace --no-fail-fast ${{ matrix.mode }}
grcov:
needs: preflight-check
Expand Down
16 changes: 15 additions & 1 deletion internal/scripts/ci_prepare_freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

#!/bin/bash
#!/bin/sh

export ASSUME_ALWAYS_YES=yes

pkg update
pkg install curl git llvm
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --no-modify-path
export PATH=$PATH:$HOME/.cargo/bin
rustup toolchain add beta nightly 1.73.0 stable
rustup component add clippy rustfmt
pw useradd testuser1
pw useradd testuser2
pw groupadd testgroup1
pw groupadd testgroup2
kldload mqueuefs
mkdir -p /mnt/mqueue/
mount -t mqueuefs null /mnt/mqueue/

0 comments on commit a6d9a55

Please sign in to comment.