Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use self-hosted mac mini for the small, auxiliary tasks #3072

Merged
merged 3 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
toolchain: ${{ matrix.device.toolchain }}

extras:
runs-on: ubuntu-latest
runs-on: macos-m1-self-hosted

steps:
- uses: actions/checkout@v4
Expand All @@ -97,8 +97,6 @@ jobs:
toolchain: stable
- uses: Swatinem/rust-cache@v2

- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install musl-tools libudev-dev pkg-config
# Build the extra crates
- name: Build the bench-server
run: cd extras/bench-server && cargo build
Expand All @@ -111,9 +109,7 @@ jobs:
# MSRV

msrv:
runs-on: ubuntu-latest
env:
RUSTC_BOOTSTRAP: 1
runs-on: macos-m1-self-hosted

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -166,7 +162,7 @@ jobs:
# Format

rustfmt:
runs-on: ubuntu-latest
runs-on: macos-m1-self-hosted

steps:
- uses: actions/checkout@v4
Expand All @@ -185,7 +181,7 @@ jobs:
# host tests

host-tests:
runs-on: ubuntu-latest
runs-on: macos-m1-self-hosted

steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,9 @@ env:

jobs:
build-xtasks:
name: Build xtasks | ${{ matrix.host.arch }}
name: Build xtasks
runs-on: ubuntu-latest
bugadani marked this conversation as resolved.
Show resolved Hide resolved

strategy:
fail-fast: false
matrix:
host:
- arch: armv7
rust-target: armv7-unknown-linux-gnueabihf
- arch: aarch64
rust-target: aarch64-unknown-linux-gnu

steps:
- uses: actions/checkout@v4
if: github.event_name != 'workflow_dispatch'
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
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
path: target/aarch64-unknown-linux-gnu/release/xtask

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