From 1814868a0cd9d26a66bf3f3048333af7ae612ff8 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Thu, 2 May 2024 00:05:23 +0200 Subject: [PATCH] Fix CI release workflow --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5312d90..99d7fe6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,6 +93,7 @@ jobs: target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux || 'auto' }} container: ${{ matrix.container }} + docker-options: -e CI - name: Upload wheels uses: actions/upload-artifact@v3 with: @@ -126,6 +127,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: llvm-tools + # FIXME: remove next step once PyO3/maturin-action filters `CARGO_HOME` + - run: echo 'CARGO_HOME=' >> "$GITHUB_ENV" + shell: bash - name: Build initial wheel uses: PyO3/maturin-action@v1 with: @@ -134,6 +138,7 @@ jobs: command: build args: --release --out pgo_wheel --interpreter ${{ matrix.interpreter }} manylinux: ${{ matrix.manylinux || 'auto' }} + docker-options: -e CI env: RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata" - run: | @@ -156,6 +161,7 @@ jobs: args: --release --out dist --interpreter ${{ matrix.interpreter }} manylinux: ${{ matrix.manylinux || 'auto' }} rust-toolchain: stable + docker-options: -e CI env: RUSTFLAGS: "-Cprofile-use=${{ github.workspace }}/merged.profdata" - name: Upload wheels