Repository navigation
63 lines (56 loc) · 1.72 KB
/
Copy pathbuild-binary.yml
File metadata and controls
63 lines (56 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
53
54
55
56
57
58
59
60
61
62
63
name: Build Binary
permissions:
contents: read
on:
workflow_dispatch:
inputs:
features:
description: "List of features to enable"
required: false
default: ""
commit_sha:
description: "Specific commit SHA to checkout and build. If empty, builds HEAD of the branch."
required: false
default: ""
push:
branches:
- "main"
paths:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
- "tests/fixtures/**"
- "static/**"
- ".sqlx/**"
env:
RETENTION_DAYS: 90
BUILDS_REPO: cloudwalk/stratus-internal-builds
BUILDS_REF: main
BUILDS_WORKFLOW: build-binary.yml
jobs:
proxy_build:
name: Dispatch internal build and mirror artifacts
runs-on: ubuntu-22.04
timeout-minutes: 130
concurrency:
group: ${{ github.workflow }}-${{ github.event.inputs.commit_sha || github.sha }}-${{ github.event.inputs.features || 'default' }}
cancel-in-progress: true
steps:
- name: Checkout Stratus
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
ref: ${{ inputs.commit_sha || github.sha }}
fetch-depth: 0
persist-credentials: false
- name: Run internal build
uses: ./.github/actions/run-internal-ci
with:
internal-workflow: build-binary.yml
ref: ${{ inputs.commit_sha || github.sha }}
ci-key: build-binary
dispatch-inputs: ${{ format('{{"features":{0}}}', toJSON(inputs.features)) }}
mirror-artifacts: all
artifact-retention-days: ${{ env.RETENTION_DAYS }}
timeout-minutes: 125
token: ${{ secrets.INTERNAL_BUILDS_TOKEN }}