-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (60 loc) · 1.61 KB
/
deploy-wheels.yml
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
name: deploy-wheels
on:
release:
types: [released]
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "windows-2019", "macos-14"]
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: ./.github/actions/rust-toolchain
with:
toolchain: 1.75.0
components: rustfmt clippy
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
if: ${{ matrix.os != 'macos-14' }}
- name: Install LLVM
uses: ./.github/actions/install-llvm
with:
version: "15"
os: ${{ matrix.os }}
- name: Build
run: |
pwd
./build.ps1 -t "pypi-build"
shell: pwsh
- name: Artifacts - manylinux
uses: actions/upload-artifact@v4
with:
name: rasqal-manylinux-artifacts
path: src/target/wheels/*manylinux_2_*.whl
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: rasqal-${{ matrix.os }}-artifacts
path: src/target/wheels/*
if: ${{ matrix.os != 'ubuntu-20.04' }}
publish:
runs-on: ubuntu-latest
needs: [ deploy ]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: rasqal-*
merge-multiple: true
path: dist/
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/