From a451f2b150e0e4c6c470bba8a3f99cb5d8a4f5f5 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Wed, 3 Jul 2024 14:44:15 -0700 Subject: [PATCH 1/2] chore: populate the build cache --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 616a30281..2db92010a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,11 @@ name: BAML Release on: + workflow_dispatch: {} + # need to run this periodically on the default branch to populate the build cache + schedule: + # daily at 2am PST + - cron: 0 10 * * * push: tags: - "test-release/*.*" @@ -163,7 +168,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: engine - shared-key: ${{ env.GITHUB_JOB }}-engine-${{ matrix._.target }} + shared-key: engine-${{ github.job }}-${{ matrix._.target }} cache-on-failure: true - name: Build Rust From a1f19861e2408de503c539c3268b79bfd5ff66e0 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Wed, 3 Jul 2024 14:49:45 -0700 Subject: [PATCH 2/2] more --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2db92010a..2a7f4fd56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: run_install: false # Set up Node.js - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: "pnpm" node-version: 20 @@ -142,7 +142,6 @@ jobs: with: python-version: "3.8" architecture: ${{ matrix._.host == 'windows-latest' && 'x64' || null }} - # Install node set up - uses: pnpm/action-setup@v3 with: version: 9.0.6 @@ -232,9 +231,6 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - name: setup pnpm uses: pnpm/action-setup@v3 @@ -315,7 +311,7 @@ jobs: # run_install: false # # Set up Node.js # - name: Setup Node.js - # uses: actions/setup-node@v3 + # uses: actions/setup-node@v4 # with: # cache: "pnpm" # node-version: 20