-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (56 loc) · 1.52 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
name: Build
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
lint_and_test:
name: lint and test
uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_lint_and_test.yaml@main
with:
go_version: ${{ vars.ARCALOT_GO_VERSION }}
generate:
name: go generate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ vars.ARCALOT_GO_VERSION }}
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-test-${{ hashFiles('**/go.sum') }}
restore-keys: go-generate-
- name: Run go generate
run: ./.github/scripts/gogenerate.sh
release:
name: release
permissions:
contents: write
needs:
- lint_and_test
- generate
uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_release.yaml@main
secrets:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
with:
go_version: ${{ vars.ARCALOT_GO_VERSION }}
for_release: ${{ startsWith(github.event.ref, 'refs/tags/') }}
build_python_wheel:
name: build python wheel
needs:
- release
uses: arcalot/arcaflow-reusable-workflows/.github/workflows/python_release.yaml@main
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
python_version: ${{ vars.ARCALOT_PYTHON_VERSION }}