diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5ee2127..9b3c7d8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bd00512..baacf29d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: contents: write jobs: - build-musl-binaries: + build-binaries: strategy: matrix: include: @@ -18,6 +18,8 @@ jobs: 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: @@ -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 }} @@ -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 @@ -81,6 +84,7 @@ jobs: target: - x86_64-unknown-linux-musl - aarch64-unknown-linux-musl + - aarch64-apple-darwin runs-on: ubuntu-latest steps: