Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: populate the build cache #753

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/*.*"
Expand Down Expand Up @@ -39,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
Expand Down Expand Up @@ -137,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
Expand All @@ -163,7 +167,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
Expand Down Expand Up @@ -227,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
Expand Down Expand Up @@ -310,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
Expand Down
Loading