Skip to content

Commit

Permalink
Setup pnpm in CI, cache node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Dec 7, 2023
1 parent 953c563 commit a4216af
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Build for win and linux
on:
push:

env:
GO_VERSION: "1.21"
NODE_VERSION: "18"
PNPM_VERSION: "8.6.1"

jobs:
linux:
name: Build (Linux)
Expand All @@ -14,20 +19,26 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21

go-version: ${{ env.GO_VERSION }}

- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: frontend

- name: Install Dependencies
run: |
sudo apt -y install libgtk-3-dev libwebkit2gtk-4.0-dev
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Build
run: wails build

Expand All @@ -47,16 +58,22 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: ${{ env.GO_VERSION }}

- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18

node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: frontend

- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Build
run: wails build -nsis

Expand Down

0 comments on commit a4216af

Please sign in to comment.