Skip to content
Open
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
12 changes: 6 additions & 6 deletions .github/workflows/tfjs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: bazel-contrib/setup-bazel@0.14.0
- uses: bazel-contrib/setup-bazel@e8776f58fb6a6e9055cbaf1b38c52ccc5247e9c4 # 0.14.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}-cpu
# Share repository cache between workflows.
repository-cache: true
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Test TFJS CPU
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20.x
cache: 'npm'
Expand All @@ -35,17 +35,17 @@ jobs:
test-gpu-mac:
runs-on: macos-latest-xlarge # consumer gpu
steps:
- uses: bazel-contrib/setup-bazel@0.14.0
- uses: bazel-contrib/setup-bazel@e8776f58fb6a6e9055cbaf1b38c52ccc5247e9c4 # 0.14.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}-gpu-mac
# Share repository cache between workflows.
repository-cache: true
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Test TFJS GPU
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20.x
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tfjs-nightly-release-and-publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.14.0
uses: bazel-contrib/setup-bazel@e8776f58fb6a6e9055cbaf1b38c52ccc5247e9c4 # 0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-nightly-release
repository-cache: true

- name: Setup Node.js and Yarn
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20.x # Using a current LTS version of Node.js
cache: 'yarn'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tfjs-release-branch-publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.14.0
uses: bazel-contrib/setup-bazel@e8776f58fb6a6e9055cbaf1b38c52ccc5247e9c4 # 0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-release-e2e
repository-cache: true

- name: Setup Node.js and Yarn
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20.x
cache: 'yarn' # Changed from 'npm' in example to 'yarn' as primary tool here
Expand Down
Loading