Skip to content

Commit

Permalink
Adding CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Jun 13, 2024
1 parent 0d28c2c commit 5e13c14
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run clippy
run: cargo --all-targets --all-features

build:
strategy:
matrix:
features: ["ubsan", "ubsan,std"]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose --no-default-features --features "${{ matrix.features }}"
- name: Run tests
run: cargo test --verbose --no-default-features --features "${{ matrix.features }}"
- name: Build release version
run: cargo build --release --verbose --no-default-features --features "${{ matrix.features }}"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: libzanitisers.a
path: target/release/libzanitizers.a

0 comments on commit 5e13c14

Please sign in to comment.