Skip to content

Commit

Permalink
[Misc] introduce pnpm and nx caches in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelleduc committed Jan 9, 2025
1 parent e072aca commit e18074a
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/build_electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ jobs:
needs: electron-prepare
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
- uses: pnpm/action-setup@v4
- uses: actions/[email protected]
with:
cache: 'pnpm'
- id: restore-cache-electron-linux
uses: actions/cache@v4
with:
path: |
.nx/
key: ${{ github.ref }}-restore-cache-electron-linux
- run: pnpm install
- run: pnpm run build
- run: pnpm run --filter @xwiki/cristal-electron build:linux
Expand All @@ -50,8 +58,16 @@ jobs:
needs: electron-prepare
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
- uses: pnpm/action-setup@v4
- uses: actions/[email protected]
with:
cache: 'pnpm'
- id: restore-cache-electron-mac
uses: actions/cache@v4
with:
path: |
.nx/
key: ${{ github.ref }}-restore-cache-electron-mac
- run: pnpm install
- run: pnpm run build
- run: pnpm run --filter @xwiki/cristal-electron build:mac
Expand All @@ -67,8 +83,20 @@ jobs:
needs: electron-prepare
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
- uses: pnpm/action-setup@v4
- uses: actions/[email protected]
with:
cache: 'pnpm'
- id: restore-cache-electron-win
uses: actions/cache@v4
with:
path: |
.nx/
!.nx/workspace-data/d
key: ${{ github.ref }}-restore-cache-electron-win
env:
NX_DISABLE_DB: true
NX_DB_CACHE: false
- run: pnpm install
- run: pnpm run build
- run: pnpm run --filter @xwiki/cristal-electron build:win
Expand Down

0 comments on commit e18074a

Please sign in to comment.