Skip to content

Commit

Permalink
Build xtasks on the same runner
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 31, 2025
1 parent e77a91f commit 83df765
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,8 @@ env:

jobs:
build-xtasks:
name: Build xtasks | ${{ matrix.host.arch }}
runs-on: macos-m1-self-hosted

strategy:
fail-fast: false
matrix:
host:
- arch: armv7
rust-target: armv7-unknown-linux-gnueabihf
- arch: aarch64
rust-target: aarch64-unknown-linux-gnu
name: Build xtasks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -60,13 +51,21 @@ jobs:
run: cargo install cross

- name: Build xtasks
run: cross build --release --target ${{ matrix.host.rust-target }} -p xtask
run: |
cross build --release --target armv7-unknown-linux-gnueabihf -p xtask
cross build --release --target aarch64-unknown-linux-gnu -p xtask
- name: Upload artifact | armv7-unknown-linux-gnueabihf
uses: actions/upload-artifact@v4
with:
name: xtask-armv7-unknown-linux-gnueabihf
path: target/armv7-unknown-linux-gnueabihf/release/xtask

- name: Upload artifact
- name: Upload artifact | aarch64-unknown-linux-gnu
uses: actions/upload-artifact@v4
with:
name: xtask-${{ matrix.host.arch }}
path: target/${{ matrix.host.rust-target }}/release/xtask
name: xtask-aarch64-unknown-linux-gnu
path: target/aarch64-unknown-linux-gnu/release/xtask

build-tests:
name: Build HIL Tests | ${{ matrix.target.soc }}
Expand Down

0 comments on commit 83df765

Please sign in to comment.