-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (46 loc) · 1.72 KB
/
build.yml
File metadata and controls
52 lines (46 loc) · 1.72 KB
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
# Controlled CI build: manual ref builds and maintainer-approved PR builds.
name: Build
on:
workflow_dispatch:
inputs:
ref:
description: "Branch, tag, or commit SHA to build. Empty uses the selected workflow ref."
required: false
default: ""
use-dev-version:
description: "Use unique dev package version 9999.0.0-dev.<run>+<sha>."
required: false
type: boolean
default: true
pull_request:
branches: [main, dev]
types: [labeled]
permissions:
contents: read
concurrency:
group: ritsulib-build-${{ github.event_name }}-${{ github.event.pull_request.number || inputs.ref || github.ref }}
cancel-in-progress: false
jobs:
build:
name: Build artifacts
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'ci/build' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
persist-credentials: false
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || inputs.ref || github.ref }}
- name: Checkout API signatures (shallow)
uses: actions/checkout@v6
with:
repository: BAKAOLC/STS2-API-Signatures
path: sts2-api-signatures
fetch-depth: 1
persist-credentials: false
token: ${{ github.token }}
- uses: ./.github/actions/ritsulib-build
with:
signatures-root: ${{ github.workspace }}/sts2-api-signatures
use-dev-version: ${{ github.event_name == 'pull_request' || inputs.use-dev-version }}