-
Notifications
You must be signed in to change notification settings - Fork 81
37 lines (35 loc) · 1.24 KB
/
build-and-test-wheels.yaml
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
name: "[post-commit] Python wheels build and test"
on:
workflow_dispatch:
inputs:
from-precompiled:
description: "Use precompiled assets for wheel build"
default: True
type: boolean
schedule:
- cron: "0 0 * * *"
jobs:
build-artifact:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.from-precompiled }}
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
build-wheels:
needs: build-artifact
if: ${{ always() }}
strategy:
matrix:
# Since pre-compiled builds only run on 20.04, we can only test on 20.04 for now
# The full 22.04 flow can be tested without precompiled
os: ${{ fromJson((github.event_name == 'schedule' || inputs.from-precompiled) && '["ubuntu-20.04"]' || '["ubuntu-20.04", "ubuntu-22.04"]') }}
arch: [grayskull, wormhole_b0]
uses: ./.github/workflows/_build-wheels-impl.yaml
with:
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
from-precompiled: ${{ inputs.from-precompiled }}
test-wheels:
needs: build-wheels
if: ${{ always() }}
uses: ./.github/workflows/_test-wheels-impl.yaml
with:
from-precompiled: ${{ github.event_name == 'workflow_dispatch' && inputs.from-precompiled }}