Skip to content

Commit

Permalink
feat: improve windows ci job (#2329)
Browse files Browse the repository at this point in the history
Improves the windows build time.
  • Loading branch information
marlenecota authored Jul 12, 2024
1 parent 5d7f212 commit 3b360a2
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/windows-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- 'windows/**'
- 'src/fabric/**'
- 'package.json'
- 'Example/windows/**'
- 'Example/package.json'
- 'example/windows/**'
- 'example/package.json'
push:
branches:
- main
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: windows-2022
strategy:
matrix:
working-directory: [Example]
working-directory: [example]
concurrency:
group: windows-${{ matrix.working-directory }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -34,9 +34,23 @@ jobs:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Restore react-native-svg node_modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-svg-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-svg-

- name: Install svg node_modules
run: yarn install --frozen-lockfile

- name: Restore app node_modules from cache
uses: actions/cache@v3
with:
path: ${{ matrix.working-directory }}/node_modules
key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }}
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-

- name: Install app node_modules
working-directory: ${{ matrix.working-directory }}
run: yarn --frozen-lockfile
Expand Down

0 comments on commit 3b360a2

Please sign in to comment.