2026-03-03 22:45:32 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [main]
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build-linux:
|
2026-03-03 22:52:45 +00:00
|
|
|
runs-on: docker
|
2026-03-03 22:45:32 +00:00
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: '1.22'
|
|
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '20'
|
|
|
|
|
|
|
|
|
|
- name: Install system dependencies
|
|
|
|
|
run: |
|
|
|
|
|
sudo apt-get update -qq
|
|
|
|
|
sudo apt-get install -y -qq \
|
|
|
|
|
libgtk-3-dev \
|
|
|
|
|
libwebkit2gtk-4.0-dev \
|
|
|
|
|
pkg-config \
|
|
|
|
|
build-essential
|
|
|
|
|
|
|
|
|
|
- name: Install Wails CLI
|
|
|
|
|
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
|
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: go test ./...
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: wails build -platform linux/amd64
|
|
|
|
|
|
|
|
|
|
- name: Package artifact
|
|
|
|
|
run: |
|
|
|
|
|
cd build/bin
|
|
|
|
|
tar czf ../../csvtool-linux-amd64.tar.gz csvtool
|
|
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: csvtool-linux-amd64
|
|
|
|
|
path: csvtool-linux-amd64.tar.gz
|
|
|
|
|
|
|
|
|
|
build-linux-webkit2_41:
|
2026-03-03 22:52:45 +00:00
|
|
|
runs-on: docker
|
2026-03-03 22:45:32 +00:00
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: '1.22'
|
|
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '20'
|
|
|
|
|
|
|
|
|
|
- name: Install system dependencies (webkit2gtk-4.1)
|
|
|
|
|
run: |
|
|
|
|
|
sudo apt-get update -qq
|
|
|
|
|
sudo apt-get install -y -qq \
|
|
|
|
|
libgtk-3-dev \
|
|
|
|
|
libwebkit2gtk-4.1-dev \
|
|
|
|
|
pkg-config \
|
|
|
|
|
build-essential
|
|
|
|
|
|
|
|
|
|
- name: Install Wails CLI
|
|
|
|
|
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
|
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: go test -tags webkit2_41 ./...
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: wails build -tags webkit2_41 -platform linux/amd64
|
|
|
|
|
|
|
|
|
|
- name: Package artifact
|
|
|
|
|
run: |
|
|
|
|
|
cd build/bin
|
|
|
|
|
tar czf ../../csvtool-linux-amd64-webkit2_41.tar.gz csvtool
|
|
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: csvtool-linux-amd64-webkit2_41
|
|
|
|
|
path: csvtool-linux-amd64-webkit2_41.tar.gz
|
2026-03-03 22:52:45 +00:00
|
|
|
|
|
|
|
|
build-macos:
|
|
|
|
|
runs-on: macos
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: '1.24'
|
|
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '20'
|
|
|
|
|
|
|
|
|
|
- name: Install Wails CLI
|
|
|
|
|
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: wails build -platform darwin/arm64
|
|
|
|
|
|
|
|
|
|
- name: Package artifact
|
|
|
|
|
run: |
|
|
|
|
|
cd build/bin
|
2026-03-03 23:18:05 +00:00
|
|
|
tar czf ../../csvtool-darwin-arm64.tar.gz csvtool.app
|
2026-03-03 22:52:45 +00:00
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: csvtool-darwin-arm64
|
|
|
|
|
path: csvtool-darwin-arm64.tar.gz
|