Repository navigation
61 lines (57 loc) · 1.86 KB
/
Copy pathrelease-linux.yml
File metadata and controls
61 lines (57 loc) · 1.86 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
name: release linux
on:
push:
tags:
- "release-*"
- "v*"
permissions:
contents: write
jobs:
forge-release-boxes:
# forge-managed: release-boxes@5
name: Publish Forge cboxes
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Resolve latest Forge release
id: forge-release
uses: actions/github-script@v7
with:
result-encoding: string
script: >-
return (await github.rest.repos.getLatestRelease({
owner: 'razterizer', repo: 'forge' })).data.tag_name
- name: Checkout Forge
uses: actions/checkout@v4
with:
repository: razterizer/forge
ref: ${{ steps.forge-release.outputs.result }}
path: .forge-bootstrap
- name: Build Forge
run: >-
cmake -S .forge-bootstrap -B .forge-bootstrap/build -G Ninja
-DCMAKE_BUILD_TYPE=Release -DFORGE_BUILD_TESTS=OFF
&& cmake --build .forge-bootstrap/build
- name: Prepare Forge release boxes
run: ./.forge-bootstrap/build/forge workflow prepare-release --skip-unsupported
- name: Publish Forge release boxes
id: publish-release
continue-on-error: true
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: boxes/*.cbox,boxes/*.sha256
replacesArtifacts: false
tag: ${{ github.ref_name }}
- name: Retry Publish Forge release boxes after concurrent creation
if: steps.publish-release.outcome == 'failure'
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: boxes/*.cbox,boxes/*.sha256
replacesArtifacts: false
tag: ${{ github.ref_name }}