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 44d6568
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_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
Expand All @@ -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
Expand All @@ -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/*
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: 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
Expand All @@ -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
Expand Down

0 comments on commit 44d6568

Please sign in to comment.