-
Notifications
You must be signed in to change notification settings - Fork 22
159 lines (139 loc) · 4.74 KB
/
Copy pathrelease.yaml
File metadata and controls
159 lines (139 loc) · 4.74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# SPDX-License-Identifier: Apache-2.0
name: Release
# Triggered on tag push (vX.Y.Z) or manual dispatch. Builds the platform
# packages for every supported arch and uploads them to the GitHub Release
# that matches the tag.
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
linux:
name: Release (Linux ${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubuntu-latest
- arch: aarch64
runner: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch head as of 2026-04
- name: Package
run: make linux-${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.arch }}
path: build/coding-agents-kit-*-linux-${{ matrix.arch }}.tar.gz
if-no-files-found: error
macos:
name: Release (macOS ${{ matrix.arch }})
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
arch: [aarch64]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch head as of 2026-04
- name: Install build dependencies
run: brew install cmake openssl@3
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Cache Falco build
uses: actions/cache@v4
with:
path: |
build/falco-*-darwin-*
build/falco-src-*
key: falco-macos-${{ matrix.arch }}-${{ hashFiles('installers/macos/build-falco.sh', 'installers/macos/falco-macos-http-output.patch') }}
- name: Package
run: make macos-${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: macos-${{ matrix.arch }}
path: |
build/coding-agents-kit-*-darwin-*.tar.gz
build/coding-agents-kit-*-darwin-*.pkg
if-no-files-found: error
windows:
name: Release (Windows ${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- arch: x64
runner: windows-latest
vcpkg_triplet: x64-windows-static
- arch: arm64
runner: windows-11-arm
vcpkg_triplet: arm64-windows-static
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch head as of 2026-04
- name: Install make
run: choco install make -y
- name: Cache vcpkg installed tree
uses: actions/cache@v4
with:
path: C:\vcpkg\installed\${{ matrix.vcpkg_triplet }}
key: vcpkg-${{ matrix.vcpkg_triplet }}-curl-${{ hashFiles('.github/workflows/release.yaml') }}
- name: Install vcpkg curl
run: vcpkg install curl:${{ matrix.vcpkg_triplet }}
- name: Cache Falco build
uses: actions/cache@v4
with:
path: |
build/falco-*-windows-*
build/falco-src-*
key: falco-windows-${{ matrix.arch }}-${{ hashFiles('installers/windows/build-falco.ps1', 'installers/windows/falco-windows-*.patch') }}
- name: Install WiX Toolset
run: |
dotnet tool install --global wix
wix eula accept wix7
wix extension add --global WixToolset.Util.wixext
wix extension add --global WixToolset.UI.wixext
- name: Build MSI
run: >-
powershell -NoProfile -ExecutionPolicy Bypass -File installers/windows/package.ps1
-Arch ${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.arch }}
path: |
build/out/*.msi
build/out/Install-CodingAgentsKit.ps1
build/out/Uninstall-CodingAgentsKit.ps1
if-no-files-found: error
publish:
name: Publish GitHub Release
needs: [linux, macos, windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Upload to release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
files: |
artifacts/linux-x86_64/*
artifacts/linux-aarch64/*
artifacts/macos-aarch64/*
artifacts/windows-x64/*
artifacts/windows-arm64/*
fail_on_unmatched_files: true
generate_release_notes: true