add action #11
Workflow file for this run
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
name: Run tests | |
'on': | |
pull_request: null | |
jobs: | |
build_artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
run: cargo test --no-run --features=it | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-latest-heaven | |
path: target/debug | |
tests: | |
runs-on: ubuntu-latest | |
needs: build_artifacts | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: ubuntu-latest-heaven | |
path: artifacts/ubuntu | |
- name: Execute tests | |
run: cargo test --features=it --no-fail-fast |