-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
3ae5166
commit 44d6568
Showing
1 changed file
with
12 additions
and
7 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,12 +1,17 @@ | ||
name: Test all targets | ||
|
||
env: | ||
GITHUB_CHECKOUT_VERSION: 'v4.2.1' | ||
GITHUB_DOWNLOAD_ARTIFACT_VERSION: 'v4' | ||
GITHUB_UPLOAD_ARTIFACT_VERSION: 'v4.4.3' | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
quick-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@${{ env.GITHUB_CHECKOUT_VERSION }} | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
@@ -22,7 +27,7 @@ jobs: | |
needs: quick-tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@${{ env.GITHUB_CHECKOUT_VERSION }} | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
@@ -39,14 +44,14 @@ jobs: | |
compile-examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@${{ env.GITHUB_CHECKOUT_VERSION }} | ||
- name: Compile examples for ARM v7 | ||
uses: houseabsolute/[email protected] | ||
with: | ||
target: armv7-unknown-linux-gnueabihf | ||
args: "--examples --release" | ||
- name: Upload compiled examples | ||
uses: actions/upload-artifact@v4.4.3 | ||
uses: actions/upload-artifact@${{ env.GITHUB_UPLOAD_ARTIFACT_VERSION }} | ||
with: | ||
name: examples-armv7 | ||
path: target/armv7-unknown-linux-gnueabihf/release/examples/* | ||
|
@@ -59,9 +64,9 @@ jobs: | |
- name: Run USB management script | ||
run: /etc/github_runner/ci_management.sh | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@${{ env.GITHUB_CHECKOUT_VERSION }} | ||
- name: Download compiled examples | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@${{ env.GITHUB_DOWNLOAD_ARTIFACT_VERSION }} | ||
with: | ||
name: examples-armv7 | ||
path: ./examples | ||
|
@@ -88,7 +93,7 @@ jobs: | |
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Checkout to repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@${{ env.GITHUB_CHECKOUT_VERSION }} | ||
with: | ||
submodules: recursive | ||
- name: Setup Rust toolchain | ||
|