Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/workflows/binary-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
artifact-name: native-bin-macos-preview
secrets:
OP_CI_TOKEN: ${{ secrets.OP_CI_TOKEN }}
DEPOT_TURBO_TOKEN: ${{ secrets.DEPOT_TURBO_TOKEN }}

# Build Rust native binaries for Linux and Windows
build-native-rust:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/binary-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
node-version: "24.x"
- name: Install node deps
run: bun install
- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14
# No turbo cache: published artifacts are always built from source.
- name: Install cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
with:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-native-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ on:
secrets:
OP_CI_TOKEN:
required: true
# PR callers pass this so the varlock libs build reuses Depot's turbo cache.
# Release callers leave it out, so release builds always run from source.
DEPOT_TURBO_TOKEN:
required: false

jobs:
build-swift-binary:
Expand All @@ -42,8 +46,10 @@ jobs:
- name: Install node deps
run: bun install

- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14
- name: Enable turborepo remote cache
uses: ./.github/actions/depot-turbo-cache
with:
token: ${{ secrets.DEPOT_TURBO_TOKEN }}

# Cache the Swift .build directory so compilation is fast on unchanged source
- name: Compute Swift source hash
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ jobs:
- name: Install dependencies
run: bun install

- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14
- name: Enable turborepo remote cache
uses: ./.github/actions/depot-turbo-cache
with:
token: ${{ secrets.DEPOT_TURBO_TOKEN }}

# builds the packed tarballs under test AND the varlock CLI used below
- name: Build libraries
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nextjs-canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
- name: Install dependencies
run: bun install

- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14
- name: Enable turborepo remote cache
uses: ./.github/actions/depot-turbo-cache
with:
token: ${{ secrets.DEPOT_TURBO_TOKEN }}

- name: Build libraries
run: bun run build:libs
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/notarize-native-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ jobs:
- name: Install node deps
run: bun install

- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14

# No turbo cache: published artifacts are always built from source.
- name: Build varlock libs
run: bun run build:libs

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ jobs:
node-version: "24.x"
- name: Install node deps
run: bun install
- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14

# No turbo cache: published artifacts are always built from source.
# Ensure npm >= 11.15.0 for OIDC/provenance
- name: Update npm
run: npm install -g npm@latest
Expand Down Expand Up @@ -461,8 +459,7 @@ jobs:
node-version: "24.x"
- name: Install node deps
run: bun install
- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@56219402aacc0d06b650d898c222996dbc1191ec # v2.3.14
# No turbo cache: published artifacts are always built from source.
- name: Install cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ jobs:
artifact-name: native-bin-macos-ci
secrets:
OP_CI_TOKEN: ${{ secrets.OP_CI_TOKEN }}
DEPOT_TURBO_TOKEN: ${{ secrets.DEPOT_TURBO_TOKEN }}

# Build Rust native binaries if varlock is being released AND (source changed or cache missing)
build-native-rust:
Expand Down
Loading