-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: SDK workflow builds (#1938)
- Loading branch information
1 parent
aa3ba62
commit 5e3f5f8
Showing
2 changed files
with
167 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build and Cache SDK | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
build-cache-sdk: | ||
name: Build and Cache SDK | ||
runs-on: ubuntu-latest-4-cores | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=14366 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Cache build artifacts | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-build-cache-deps-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Cache build artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
./sdk | ||
./packages | ||
key: ${{ runner.os }}-build-cache-${{ github.sha }} |