-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split workflows into check and tests.
- Loading branch information
Showing
3 changed files
with
76 additions
and
59 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,42 @@ | ||
name: Build and run checks | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**.rs' | ||
- '**/Cargo.*' | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: "" # overrides the -Dwarnings default | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Check jaq-core without default features | ||
working-directory: jaq-core | ||
run: cargo check --no-default-features | ||
|
||
- name: Check jaq-std without default features | ||
working-directory: jaq-std | ||
run: cargo check --no-default-features | ||
|
||
- name: Check jaq-json without default features | ||
working-directory: jaq-json | ||
run: cargo check --no-default-features | ||
|
||
- name: Clippy | ||
run: cargo clippy -- -Dwarnings |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Build and run tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**.rs' | ||
- '**/Cargo.*' | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: build ${{ matrix.target }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { target: i686-unknown-linux-gnu } | ||
- { target: x86_64-unknown-linux-gnu } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
|
||
- name: Run tests | ||
run: cargo test --verbose --target=${{ matrix.target }} |