Skip to content

Commit

Permalink
Merge pull request #23 from RusPiRo/feature/rpi4
Browse files Browse the repository at this point in the history
adjust pipeline build, hopefully fix secret issue
  • Loading branch information
2ndTaleStudio authored Nov 22, 2021
2 parents f02ec92 + 7057fb7 commit f946389
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
build:
name: Compile The Crate
runs-on: ubuntu-latest
strategy:
matrix:
platform: [pi3, pi4_low, pi4_high]

steps:
# Checkout the current code from github into the CI machine
Expand Down Expand Up @@ -42,17 +45,33 @@ jobs:
- name: Compile Pi3
run: |
cd ./interrupt
cargo make pi3
cargo make ${{ matrix.platform }}
- name: Compile Pi4 LowPeri
run: |
cd ./interrupt
cargo make pi4_low
build_example:
name: Compile The Example
runs-on: ubuntu-latest

- name: Compile Pi4 HighPeri
run: |
cd ./interrupt
cargo make pi4_high
steps:
# Checkout the current code from github into the CI machine
- name: Checkout Code
uses: actions/checkout@v2

- name: Install aarch64 gcc toolchain
run: sudo apt-get install -y gcc-aarch64-linux-gnu

- name: Install Rust Nightly and Cargo
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-09-05
override: true
components: rust-src, llvm-tools-preview
target: aarch64-unknown-linux-gnu

- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
with:
version: 'latest'

- name: Compile Example
run: |
Expand Down Expand Up @@ -196,7 +215,7 @@ jobs:
- name: Publish-Run
run: |
cd ./macros/
cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }} --profile pipeline
cargo make --profile pipeline publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }}
publish-interrups:
if: ${{ github.ref == 'refs/heads/release' }}
Expand Down Expand Up @@ -242,6 +261,8 @@ jobs:
cargo make publish_dry --profile pipeline
- name: Publish-Run
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
run: |
cd ./interrupt/
cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }}
cargo make --profile pipeline publish --env CRATES_TOKEN=${{ env.CRATES_TOKEN }}

0 comments on commit f946389

Please sign in to comment.