forked from rumos-io/gears
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
40 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 |
---|---|---|
@@ -1,47 +1,35 @@ | ||
name: Run tests | ||
|
||
name: Run tests | ||
on: | ||
# Run on any PR | ||
pull_request: | ||
|
||
|
||
pull_request: null | ||
jobs: | ||
build_artifacts: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout # Clone git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get install -y llvm clang libclang-dev build-essential libhidapi-dev libudev-dev | ||
|
||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Build artifacts | ||
uses: cargo test --no-run --features=it | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ubuntu-latest-heaven | ||
path: target/release/heaven | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo apt-get install -y llvm clang libclang-dev build-essential | ||
libhidapi-dev libudev-dev | ||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Build artifacts | ||
uses: cargo test --no-run --features=it | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ubuntu-latest-heaven | ||
path: target/release/heaven | ||
tests: | ||
runs-on: ubuntu-latest | ||
needs: build_artifacts | ||
|
||
runs-on: ubuntu-latest | ||
needs: build_artifacts | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ubuntu-latest-heaven | ||
path: artifacts/ubuntu | ||
|
||
- name: Execute tests | ||
run: cargo test --features=it --no-fail-fast | ||
|
||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ubuntu-latest-heaven | ||
path: artifacts/ubuntu | ||
- name: Execute tests | ||
run: cargo test --features=it --no-fail-fast |