Skip to content

Commit

Permalink
Split Raw-rs CI into a seperate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elbertronnie committed Oct 25, 2024
1 parent bca4aaa commit 5120340
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 73 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/build-dev-and-ci-raw-rs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: "Raw-rs: Dev & CI"

on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: self-hosted
permissions:
contents: read
env:
RUSTC_WRAPPER: /usr/bin/sccache
CARGO_INCREMENTAL: 0
SCCACHE_DIR: /var/lib/github-actions/.cache

steps:
- name: 📥 Clone and checkout repository
uses: actions/checkout@v3

- name: 🦀 Install the latest Rust
run: |
echo "Initial system version:"
rustc --version
rustup update stable
echo "Latest updated version:"
rustc --version
- name: 🔬 Check Rust formatting
run: |
cd libraries/raw-rs
mold -run cargo fmt --all -- --check
- name: 🦀 Build Rust code
run: |
cd libraries/raw-rs
mold -run cargo build --release --all-features
- name: 🧪 Run Rust tests
run: |
cd libraries/raw-rs
mold -run cargo test --release --all-features
# miri:
# runs-on: self-hosted

# steps:
# - uses: actions/checkout@v3

# - name: 🧪 Run Rust miri
# run: |
# mold -run cargo +nightly miri nextest run -j32 --all-features

cargo-deny:
runs-on: ubuntu-latest

steps:
- name: 📥 Clone and checkout repository
uses: actions/checkout@v3

- name: 🔒 Check crate security advisories
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories

- name: 📜 Check crate license compatibility
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
15 changes: 0 additions & 15 deletions .github/workflows/build-dev-and-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,6 @@ jobs:
run: |
mold -run cargo test --all-features
- name: 🔬 Check Rust formatting for Raw-rs
run: |
cd libraries/raw-rs
mold -run cargo fmt --all -- --check
- name: 🦀 Build Rust code for Raw-rs
run: |
cd libraries/raw-rs
mold -run cargo build --release --all-features
- name: 🧪 Run Rust tests for Raw-rs
run: |
cd libraries/raw-rs
mold -run cargo test --release --all-features
# miri:
# runs-on: self-hosted

Expand Down
58 changes: 0 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5120340

Please sign in to comment.