-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.1 KB
/
_build.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
---
name: _build
on:
workflow_call:
inputs:
python_version:
description: The Python version.
type: string
required: false
default: '3.12'
runs_on:
description: The runner environment.
type: string
required: false
default: ubuntu-latest
upload_artifact:
description: Upload the built artifact.
type: string
required: false
default: 'false'
outputs:
artifact_name:
description: The artifact name.
value: build-${{ github.sha }}
jobs:
build:
name: Package
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
python_version: ${{ inputs.python_version }}
- name: Build
run: make build
- name: Upload artifact
uses: actions/upload-artifact@v4
if: inputs.upload_artifact == 'true'
with:
name: build-${{ github.sha }}
if-no-files-found: error
path: dist/