-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (79 loc) · 2.48 KB
/
Copy pathrelease-ctidy.yml
File metadata and controls
83 lines (79 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Release ctidy
on:
push:
tags:
- "ctidy-v*"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
build_wheels:
name: Build ${{ matrix.artifact_name }}
runs-on: ${{ matrix.runs_on }}
permissions:
id-token: write
strategy:
fail-fast: false
matrix:
include:
- artifact_name: ctidy-wheel-linux-x86_64
runs_on: ubuntu-latest
cibw_archs: x86_64
macos_deployment_target: ""
- artifact_name: ctidy-wheel-macos-x86_64
runs_on: macos-15-intel
cibw_archs: x86_64
macos_deployment_target: "10.15"
- artifact_name: ctidy-wheel-macos-arm64
runs_on: macos-14
cibw_archs: arm64
macos_deployment_target: "11.0"
- artifact_name: ctidy-wheel-windows-amd64
runs_on: windows-latest
cibw_archs: AMD64
macos_deployment_target: ""
env:
CIBW_BUILD: "cp39-*"
CPPLLVM_DOWNLOAD_DIR: ${{ github.workspace }}/.cache/ctidy-downloads
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }}
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair -w {dest_dir} {wheel}"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: ""
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/cache@v4
with:
path: .cache/ctidy-downloads
key: ctidy-downloads-${{ matrix.artifact_name }}-${{ github.sha }}
restore-keys: |
ctidy-downloads-${{ matrix.artifact_name }}-
- run: python -m pip install --upgrade cibuildwheel
- run: python -m cibuildwheel --output-dir "${{ github.workspace }}/wheelhouse"
working-directory: packages/ctidy
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: wheelhouse/*.whl
publish:
runs-on: ubuntu-latest
needs:
- build_wheels
permissions:
id-token: write
environment: pypi-ctidy
steps:
- uses: actions/download-artifact@v4
with:
pattern: "ctidy-wheel-*"
merge-multiple: true
path: dist
- run: ls -lh dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
attestations: false
verbose: true