-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Raw-rs CI into a seperate workflow
- Loading branch information
1 parent
bca4aaa
commit 5120340
Showing
3 changed files
with
75 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.