Skip to content

Commit 75a8f56

Browse files
committed
chore: Add on-demand action for building macos CLI
1 parent 921a4ab commit 75a8f56

File tree

2 files changed

+47
-4
lines changed

2 files changed

+47
-4
lines changed

.github/workflows/cli.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CLI (Mac)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
commit_sha:
7+
description: "Git commit SHA to evaluate"
8+
required: true
9+
type: string
10+
11+
env:
12+
target_sha: ${{ github.event.inputs.commit_sha }}
13+
14+
jobs:
15+
cli-mac:
16+
name: CLI (Mac)
17+
runs-on: macos-latest
18+
steps:
19+
- name: 📥 Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ env.target_sha }}
23+
24+
- name: 🦕 Setup Deno
25+
uses: ./.github/actions/deno-setup
26+
27+
- name: 📦 Cache Deno dependencies
28+
uses: actions/cache@v3
29+
with:
30+
# TODO these are not the paths used in macos
31+
path: |
32+
~/.deno
33+
~/.cache/deno
34+
key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.json') }}
35+
36+
- name: 🧪 Build CLI
37+
run: |
38+
deno task build-binaries --cli-only
39+
40+
- name: 📤 Upload CLI
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: macos-cli
44+
path: |
45+
./dist/ct

.github/workflows/evals.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ jobs:
5555
with:
5656
ref: ${{ env.target_sha }}
5757

58-
- name: 🦕 Setup Deno 2.2.2
59-
uses: denoland/setup-deno@v2
60-
with:
61-
deno-version: "2.2.2"
58+
- name: 🦕 Setup Deno
59+
uses: ./.github/actions/deno-setup
6260

6361
- name: 📦 Cache Deno dependencies
6462
uses: actions/cache@v3

0 commit comments

Comments
 (0)