-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.81 KB
/
build-engine.yml
File metadata and controls
58 lines (56 loc) · 1.81 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
name: Build engine bundles
on:
workflow_dispatch:
inputs:
release_tag:
description: "Engine release tag (e.g. engine-v0.1.0)"
required: true
jobs:
build:
name: Build all platform bundles
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install engine deps
working-directory: engine
run: npm ci
- name: Build all bundles
working-directory: engine
run: |
for tgt in darwin-arm64 darwin-x64 linux-x64 linux-arm64 win32-x64 win32-arm64; do
echo "::group::Build $tgt"
bash scripts/build-bundle.sh "$tgt"
echo "::endgroup::"
done
- name: Generate SHA256SUMS
working-directory: engine/release
run: |
sha256sum codegraph-*.{tar.gz,zip} 2>/dev/null > SHA256SUMS || \
shasum -a 256 codegraph-*.{tar.gz,zip} > SHA256SUMS
cat SHA256SUMS
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: engine-bundles
path: |
engine/release/codegraph-*.tar.gz
engine/release/codegraph-*.zip
engine/release/SHA256SUMS
retention-days: 30
- name: Create draft GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ inputs.release_tag }}" \
--title "Engine ${{ inputs.release_tag }}" \
--notes "Auto-built engine bundles from $(git rev-parse --short HEAD)." \
--draft \
engine/release/codegraph-*.tar.gz \
engine/release/codegraph-*.zip \
engine/release/SHA256SUMS