Handle null selected install #4
Workflow file for this run
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
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) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
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: ${{ 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 | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux | |
path: build/bin/* | |
windows: | |
name: Build (Windows) | |
runs-on: windows-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
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: ${{ 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 | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows | |
path: build/bin/* |