Skip to content

Commit

Permalink
[eclipse-iceoryx#3] Add ubuntu stable to github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Mar 26, 2024
1 parent dcd8c43 commit 174bc6b
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check format of all commit messages
run: ./internal/scripts/ci_test_commit_msg.sh
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
Expand All @@ -80,12 +80,47 @@ jobs:
- name: Run cargo test
run: cargo test --workspace --no-fail-fast

ubuntu-stable:
needs: preflight-check
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

- name: Prepare system
run: |
sudo apt-get update
sudo apt-get install -y clang curl git libacl1-dev
sudo useradd testuser1
sudo useradd testuser2
sudo groupadd testgroup1
sudo groupadd testgroup2
- name: Run cargo fmt
run: cargo fmt --all -- --check

- name: Run cargo clippy
run: cargo clippy -- -D warnings

- name: Run cargo build
run: cargo build --workspace --all-targets

- name: Run cargo test
run: cargo test --workspace --no-fail-fast

grcov:
needs: preflight-check
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build and cache grcov
uses: ./.github/actions/build-and-cache-rust-tool
with:
Expand All @@ -101,7 +136,7 @@ jobs:
needs: grcov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get -y install libacl1-dev llvm
Expand Down

0 comments on commit 174bc6b

Please sign in to comment.