github fix platform targets #3
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 Wails Project | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [linux/amd64, windows/amd64, darwin/universal] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.23.4' | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install Wails | |
run: | | |
go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
- name: Install frontend dependencies | |
run: | | |
cd src-go/blunderdb/frontend | |
npm install | |
- name: Build project | |
run: | | |
cd src-go/blunderdb | |
wails build -platform ${{ matrix.os }} | |
- name: Compress build | |
run: | | |
cd src-go/blunderdb/build/bin | |
tar -czf blunderdb-${{ matrix.os }}.tar.gz ./* | |
if: runner.os == 'Linux' | |
- name: Compress build (Windows) | |
run: | | |
cd src-go/blunderdb/build/bin | |
Compress-Archive -Path * -DestinationPath blunderdb-${{ matrix.os }}.zip | |
if: runner.os == 'Windows' |