Skip to content

Commit b511158

Browse files
authored
ci: publish e2e-cli build as CI artifacts (#432)
1 parent 4d9c0df commit b511158

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Publish E2E CLI build as a GitHub Actions artifact
2+
#
3+
# On merge to main (or monthly refresh), builds the e2e-cli binary
4+
# and uploads it as an artifact.
5+
#
6+
# Note: Binary is compiled for macOS (arm64). Add a Linux job if needed.
7+
8+
name: Publish E2E CLI
9+
10+
on:
11+
push:
12+
branches: [main]
13+
paths:
14+
- 'e2e-cli/**'
15+
- 'Sources/**'
16+
schedule:
17+
- cron: '0 0 1 * *'
18+
workflow_dispatch:
19+
20+
jobs:
21+
publish:
22+
runs-on: macos-latest
23+
steps:
24+
- name: Checkout SDK
25+
uses: actions/checkout@v4
26+
27+
- name: Build e2e-cli (release)
28+
working-directory: e2e-cli
29+
run: swift build -c release
30+
31+
- name: Upload artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: e2e-cli
35+
path: e2e-cli/.build/release/E2ECLI
36+
retention-days: 90

0 commit comments

Comments
 (0)