Skip to content

Commit 1814868

Browse files
committed
Fix CI release workflow
1 parent 8b5e123 commit 1814868

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
target: ${{ matrix.target }}
9494
manylinux: ${{ matrix.manylinux || 'auto' }}
9595
container: ${{ matrix.container }}
96+
docker-options: -e CI
9697
- name: Upload wheels
9798
uses: actions/upload-artifact@v3
9899
with:
@@ -126,6 +127,9 @@ jobs:
126127
- uses: dtolnay/rust-toolchain@stable
127128
with:
128129
components: llvm-tools
130+
# FIXME: remove next step once PyO3/maturin-action filters `CARGO_HOME`
131+
- run: echo 'CARGO_HOME=' >> "$GITHUB_ENV"
132+
shell: bash
129133
- name: Build initial wheel
130134
uses: PyO3/maturin-action@v1
131135
with:
@@ -134,6 +138,7 @@ jobs:
134138
command: build
135139
args: --release --out pgo_wheel --interpreter ${{ matrix.interpreter }}
136140
manylinux: ${{ matrix.manylinux || 'auto' }}
141+
docker-options: -e CI
137142
env:
138143
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
139144
- run: |
@@ -156,6 +161,7 @@ jobs:
156161
args: --release --out dist --interpreter ${{ matrix.interpreter }}
157162
manylinux: ${{ matrix.manylinux || 'auto' }}
158163
rust-toolchain: stable
164+
docker-options: -e CI
159165
env:
160166
RUSTFLAGS: "-Cprofile-use=${{ github.workspace }}/merged.profdata"
161167
- name: Upload wheels

0 commit comments

Comments
 (0)