-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.22 KB
/
package_pypi.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
on:
release:
types: [published]
schedule:
- cron: '0 1 * * *'
name: PyPi packaging
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
if: (github.repository == 'cvc5/cvc5') || (github.event_name != 'schedule')
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-dependencies
if: runner.os == 'Linux'
with:
with-documentation: false
with-python-bindings: false
with-python-packaging: true
- name: Install dependencies
uses: ./.github/actions/install-dependencies
if: runner.os == 'macOS'
with:
with-documentation: false
with-python-bindings: true
with-python-packaging: true
- name: Setup caches
uses: ./.github/actions/setup-cache
with:
cache-key: cvc5-pypi
- name: Package PyPi wheel packages
uses: ./.github/actions/package-python-wheel
with:
upload-to-pypi: ${{ github.event_name == 'release' }}
upload-to-test-pypi: false
test-pypi-token: ${{ secrets.PYPI_TOKEN }}
pypi-token: ${{ secrets.PYPI_TOKEN }}