Skip to content

Commit

Permalink
fast test
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Oct 15, 2024
1 parent 3ae5166 commit 385cf0a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Test all targets

env:
GITHUB_CHECKOUT_ACTION: "actions/[email protected]"
GITHUB_DOWNLOAD_ARTIFACT_ACTION: "actions/download-artifact@v4"
GITHUB_UPLOAD_ARTIFACT_ACTION: "actions/[email protected]"

on: [push, pull_request]

jobs:
quick-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: env.GITHUB_CHECKOUT_ACTION
- uses: actions-rs/[email protected]
with:
toolchain: stable
Expand All @@ -22,7 +27,7 @@ jobs:
needs: quick-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: env.GITHUB_CHECKOUT_ACTION
- uses: actions-rs/[email protected]
with:
toolchain: stable
Expand All @@ -39,14 +44,14 @@ jobs:
compile-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: env.GITHUB_CHECKOUT_ACTION
- 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/[email protected]
uses: env.GITHUB_UPLOAD_ACTION
with:
name: examples-armv7
path: target/armv7-unknown-linux-gnueabihf/release/examples/*
Expand All @@ -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: env.GITHUB_CHECKOUT_ACTION
- name: Download compiled examples
uses: actions/download-artifact@v4
uses: env.GITHUB_DOWNLOAD_ACTION
with:
name: examples-armv7
path: ./examples
Expand All @@ -88,7 +93,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout to repository
uses: actions/checkout@v2
uses: env.GITHUB_CHECKOUT_ACTION
with:
submodules: recursive
- name: Setup Rust toolchain
Expand Down

0 comments on commit 385cf0a

Please sign in to comment.