-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.29 KB
/
build.yml
File metadata and controls
54 lines (42 loc) · 1.29 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
name: Build Artifacts
on:
workflow_dispatch:
inputs:
version:
description: Release version to stamp into the built artifacts
required: true
type: string
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
build:
runs-on: macos-14
env:
VERSION: ${{ inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin,aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu,aarch64-pc-windows-gnullvm,x86_64-pc-windows-gnullvm
- uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/setup-build-env
- name: Install dependencies
run: npm ci --omit=optional
- name: Stamp release version
run: node ./npm/prepare-release.cjs "$VERSION"
- name: Build release artifacts
run: node ./scripts/release/build-release-artifacts.mjs --version "$VERSION"
- uses: actions/upload-artifact@v4
with:
name: telegram-agent-cli-dist-${{ inputs.version }}
path: dist/*
retention-days: 1