Repository navigation
58 lines (49 loc) · 1.58 KB
/
Copy pathpython-build.yml
File metadata and controls
58 lines (49 loc) · 1.58 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
name: Build
on:
release:
types: [published]
jobs:
deploy:
strategy:
fail-fast: false
matrix:
cfg:
- { os: windows-2025-vs2026, python-version: '3.14', architecture: x64, whl: 'cp314-win_amd64' }
- { os: windows-11-vs2026-arm, python-version: '3.14', architecture: arm64, whl: 'cp314-win_arm64' }
- { os: macos-15-intel, python-version: '3.14', architecture: x64, whl: 'cp314-macosx_x86_64' }
- { os: macos-15, python-version: '3.14', architecture: arm64, whl: 'cp314-macosx_arm64' }
- { os: ubuntu-24.04, python-version: '3.14', architecture: x64, whl: 'cp314-manylinux_x86_64' }
runs-on: ${{ matrix.cfg.os }}
defaults:
run:
shell: bash
steps:
- name: Clone
uses: actions/checkout@v7
with:
submodules: 'true'
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.cfg.python-version }}
architecture: ${{ matrix.cfg.architecture }}
- name: Build sdist
run: |
pip install build
python -m build --sdist --outdir dist .
- name: Build
env:
CIBW_TEST_COMMAND: ""
run: |
pip install cibuildwheel~=4.1
cibuildwheel --only ${{ matrix.cfg.whl }} --output-dir dist .
- name: Install twine
shell: bash
run: |
pip install twine
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.AMULET_GAME_PYPI_PASSWORD }}
run: |
twine upload dist/* --skip-existing