Skip to content

🎥 Make videos programmatically with React

Discard changes to .github/workflows/push.yml

Jonny Burger603827c54a2f
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 70d558c0bb..40a7bf06e3 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -38,16 +38,21 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: "packages/renderer -> target"
- - name: Cache turbo build setup
- uses: actions/cache@v4
- with:
- path: .turbo
- key: ${{ runner.os }}-turbo-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-turbo-
- name: Install
run: pnpm install --frozen-lockfile
-
+ - name: Build cache
+ uses: actions/[email protected]
+ with:
+ # Currently disabled but would love to enable:
+ path: |
+ tsconfig.tsbuildinfo
+ packages/*/dist
+ packages/*/tsconfig.tsbuildinfo
+ packages/*/.turbo
+ packages/docs/node_modules/.cache
+ packages/example/node_modules/.cache
+ packages/google-fonts/.cache-css
+ key: ts-${{ runner.os }}-node16-v3
- name: build
run: |
pnpm build
@@ -75,13 +80,13 @@ jobs:
shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- - name: Cache turbo build setup
- uses: actions/cache@v4
+ - uses: actions/cache@v3
+ name: Setup pnpm cache
with:
- path: .turbo
- key: ${{ runner.os }}-turbo-${{ github.sha }}
+ path: ${{ steps.pnpm-cache.outputs.PNPM_STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
- ${{ runner.os }}-turbo-
+ ${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm install --frozen-lockfile
- name: Setup Python
@@ -95,16 +100,28 @@ jobs:
php-version: "8.3"
tools: phpunit:10.1.3
- run: pip install pylint boto3 pytest
+ - name: Build cache
+ uses: actions/[email protected]
+ with:
+ path: |
+ tsconfig.tsbuildinfo
+ packages/*/dist
+ packages/*/tsconfig.tsbuildinfo
+ packages/*/.turbo
+ packages/docs/node_modules/.cache
+ packages/example/node_modules/.cache
+ packages/google-fonts/.cache-css
+ key: ts-${{ runner.os }}-node16-v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "packages/renderer -> target"
- - name: Cache turbo build setup
- uses: actions/cache@v4
+ - name: Build cache
+ uses: actions/[email protected]
with:
- path: .turbo
- key: ${{ runner.os }}-turbo-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-turbo-
+ path: |
+ packages/google-fonts/.cache-css
+ key: ssr-${{ runner.os }}-node16-v3
+
- name: build
run: |
pnpm build
@@ -137,13 +154,6 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- - name: Cache turbo build setup
- uses: actions/cache@v4
- with:
- path: .turbo
- key: ${{ runner.os }}-turbo-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-turbo-
- name: Install
run: pnpm install --frozen-lockfile
- name: Perform stylecheck
@@ -186,13 +196,19 @@ jobs:
shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- - name: Cache turbo build setup
- uses: actions/cache@v4
+ - uses: actions/cache@v3
+ name: Setup pnpm cache
with:
- path: .turbo
- key: ${{ runner.os }}-turbo-${{ github.sha }}
+ path: ${{ steps.pnpm-cache.outputs.PNPM_STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
- ${{ runner.os }}-turbo-
+ ${{ runner.os }}-pnpm-store-
+
+ - name: Cache node_modules/.cache
+ uses: actions/[email protected]
+ with:
+ path: node_modules/.cache
+ key: deps-${{ runner.os }}-node${{ matrix.node_version }}-v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "packages/renderer -> target"