Skip to content

Commit

Permalink
CI: Reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Feb 3, 2024
1 parent 84e7af6 commit 2d050b5
Showing 1 changed file with 9 additions and 45 deletions.
54 changes: 9 additions & 45 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,12 @@ on:
- '.gitignore'

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v1

- name: Install Rust Unix
if: runner.os != 'Windows'
run: |
if rustup --version >/dev/null 2>&1; then
rustup update
else
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable
echo ::add-path::$HOME/.cargo/bin
fi
- name: Rust version
run: |
cargo --version
rustc --version
- name: Lints
run: cargo clippy --features serde,ufmt-write

- name: Test
run: cargo test --features serde,ufmt-write

run-miri:
name: Run Miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
components: miri

- run: cargo miri test
env:
MIRIFLAGS: "-Zmiri-strict-provenance"
check:
if: github.event.pull_request.draft == false
uses: DoumanAsh/douman-ci/.github/workflows/rust.yml@master
with:
cargo-features: "serde,ufmt-write"
cargo-no-features: true
valgrind: false
miri: true
miri_flags: "-Zmiri-strict-provenance"

0 comments on commit 2d050b5

Please sign in to comment.