-
Notifications
You must be signed in to change notification settings - Fork 32
45 lines (37 loc) · 1017 Bytes
/
build.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
38
39
40
41
42
43
44
45
name: Build
on:
push:
branches:
- master
- 'release/*'
pull_request:
branches:
- master
- 'release/*'
workflow_call:
jobs:
build-wheel:
name: Wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all commits and tags, needed for intermediate versions
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Upgrade pip and other packaging tools
run: python3 -m pip install --upgrade pip setuptools setuptools_scm wheel build twine
- name: Show package version
run: python3 -m setuptools_scm
- name: Build the `galois` package
run: python3 -m build
- name: Verify the wheel file
run: python3 -m twine check dist/*
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
retention-days: 30