Skip to content

Commit ccdf47a

Browse files
committed
ci: inline release wheel builds
1 parent 99de35e commit ccdf47a

2 files changed

Lines changed: 52 additions & 18 deletions

File tree

.github/workflows/release-cformat.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111

1212
jobs:
1313
build_wheels:
14+
name: Build ${{ matrix.artifact_name }}
15+
runs-on: ${{ matrix.runs_on }}
1416
permissions:
1517
id-token: write
1618
strategy:
@@ -33,15 +35,30 @@ jobs:
3335
runs_on: windows-latest
3436
cibw_archs: AMD64
3537
macos_deployment_target: ""
36-
uses: ./.github/workflows/_wheel-build.yml
37-
with:
38-
package_name: cformat
39-
package_dir: packages/cformat
40-
artifact_name: ${{ matrix.artifact_name }}
41-
runs_on: ${{ matrix.runs_on }}
42-
cibw_archs: ${{ matrix.cibw_archs }}
43-
macos_deployment_target: ${{ matrix.macos_deployment_target }}
44-
secrets: inherit
38+
env:
39+
CIBW_BUILD: "cp39-*"
40+
CPPLLVM_DOWNLOAD_DIR: ${{ github.workspace }}/.cache/cformat-downloads
41+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
42+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }}
43+
CIBW_REPAIR_WHEEL_COMMAND: ""
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: "3.12"
49+
- uses: actions/cache@v4
50+
with:
51+
path: .cache/cformat-downloads
52+
key: cformat-downloads-${{ matrix.artifact_name }}-${{ github.sha }}
53+
restore-keys: |
54+
cformat-downloads-${{ matrix.artifact_name }}-
55+
- run: python -m pip install --upgrade cibuildwheel
56+
- run: python -m cibuildwheel --output-dir "${{ github.workspace }}/wheelhouse"
57+
working-directory: packages/cformat
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: ${{ matrix.artifact_name }}
61+
path: wheelhouse/*.whl
4562

4663
publish:
4764
runs-on: ubuntu-latest

.github/workflows/release-ctidy.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111

1212
jobs:
1313
build_wheels:
14+
name: Build ${{ matrix.artifact_name }}
15+
runs-on: ${{ matrix.runs_on }}
1416
permissions:
1517
id-token: write
1618
strategy:
@@ -33,15 +35,30 @@ jobs:
3335
runs_on: windows-latest
3436
cibw_archs: AMD64
3537
macos_deployment_target: ""
36-
uses: ./.github/workflows/_wheel-build.yml
37-
with:
38-
package_name: ctidy
39-
package_dir: packages/ctidy
40-
artifact_name: ${{ matrix.artifact_name }}
41-
runs_on: ${{ matrix.runs_on }}
42-
cibw_archs: ${{ matrix.cibw_archs }}
43-
macos_deployment_target: ${{ matrix.macos_deployment_target }}
44-
secrets: inherit
38+
env:
39+
CIBW_BUILD: "cp39-*"
40+
CPPLLVM_DOWNLOAD_DIR: ${{ github.workspace }}/.cache/ctidy-downloads
41+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
42+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }}
43+
CIBW_REPAIR_WHEEL_COMMAND: ""
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: "3.12"
49+
- uses: actions/cache@v4
50+
with:
51+
path: .cache/ctidy-downloads
52+
key: ctidy-downloads-${{ matrix.artifact_name }}-${{ github.sha }}
53+
restore-keys: |
54+
ctidy-downloads-${{ matrix.artifact_name }}-
55+
- run: python -m pip install --upgrade cibuildwheel
56+
- run: python -m cibuildwheel --output-dir "${{ github.workspace }}/wheelhouse"
57+
working-directory: packages/ctidy
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: ${{ matrix.artifact_name }}
61+
path: wheelhouse/*.whl
4562

4663
publish:
4764
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)