Skip to content
Closed
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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,37 @@ jobs:
run: cargo codspeed run
mode: walltime

walltime-macos-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: moonrepo/setup-rust@v1
with:
cache-target: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: cargo install --path crates/cargo-codspeed --locked

- name: Build the benchmarks
run: |
# Remove the cargo config else it forces instrumentation mode
rm -f .cargo/config.toml
cargo codspeed build -p codspeed-divan-compat -m walltime

- name: Run the benchmarks
uses: CodSpeedHQ/action@main
env:
MY_ENV_VAR: "YES"
CODSPEED_SKIP_UPLOAD: "true"
with:
run: cargo codspeed run -p codspeed-divan-compat
mode: walltime
# TODO: Drop this
runner-version: branch:cod-2459-be-able-to-run-all-integrations-on-macos

musl-build-check:
strategy:
matrix:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ permissions:
contents: write

jobs:
build-musl-binaries:
build-binaries:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
runner: ubuntu-24.04
- target: aarch64-unknown-linux-musl
runner: codspeedhq-arm64-ubuntu-24.04
- target: aarch64-apple-darwin
runner: macos-latest

runs-on: ${{ matrix.runner }}
steps:
Expand All @@ -30,6 +32,7 @@ jobs:
targets: ${{ matrix.target }}

- name: Install musl tools
if: endsWith(matrix.target, '-linux-musl')
run: sudo apt-get update && sudo apt-get install -y musl-tools

- run: cargo build --locked --release --bin cargo-codspeed --target ${{ matrix.target }}
Expand All @@ -42,7 +45,7 @@ jobs:
if-no-files-found: error

publish:
needs: build-musl-binaries
needs: build-binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -81,6 +84,7 @@ jobs:
target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- aarch64-apple-darwin

runs-on: ubuntu-latest
steps:
Expand Down
Loading