Skip to content

Commit

Permalink
adding ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaleman committed Jan 6, 2024
1 parent 6d1f613 commit 5a95507
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rust_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: "Linux Build and Test"
# Trigger the workflow on push to master or pull request
"on":
push:
branches:
- master
pull_request:

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust_build:
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.2"
- name: "Build the workspace"
run: cargo build --workspace

- name: "Run cargo test"
run: cargo test

- name: "Run cargo test --release"
run: cargo test --release

0 comments on commit 5a95507

Please sign in to comment.