diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml new file mode 100644 index 000000000..b0f844243 --- /dev/null +++ b/.github/workflows/cli.yml @@ -0,0 +1,45 @@ +name: CLI (Mac) + +on: + workflow_dispatch: + inputs: + commit_sha: + description: "Git commit SHA to evaluate" + required: true + type: string + +env: + target_sha: ${{ github.event.inputs.commit_sha }} + +jobs: + cli-mac: + name: CLI (Mac) + runs-on: macos-latest + steps: + - name: ๐Ÿ“ฅ Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ env.target_sha }} + + - name: ๐Ÿฆ• Setup Deno + uses: ./.github/actions/deno-setup + + - name: ๐Ÿ“ฆ Cache Deno dependencies + uses: actions/cache@v3 + with: + # TODO these are not the paths used in macos + path: | + ~/.deno + ~/.cache/deno + key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.json') }} + + - name: ๐Ÿงช Build CLI + run: | + deno task build-binaries --cli-only + + - name: ๐Ÿ“ค Upload CLI + uses: actions/upload-artifact@v4 + with: + name: macos-cli + path: | + ./dist/ct diff --git a/.github/workflows/evals.yml b/.github/workflows/evals.yml index 4d194531e..579c07c4d 100644 --- a/.github/workflows/evals.yml +++ b/.github/workflows/evals.yml @@ -55,10 +55,8 @@ jobs: with: ref: ${{ env.target_sha }} - - name: ๐Ÿฆ• Setup Deno 2.2.2 - uses: denoland/setup-deno@v2 - with: - deno-version: "2.2.2" + - name: ๐Ÿฆ• Setup Deno + uses: ./.github/actions/deno-setup - name: ๐Ÿ“ฆ Cache Deno dependencies uses: actions/cache@v3