From bc99e35c79fbf0dba7e565b722552cd81ec59ded Mon Sep 17 00:00:00 2001 From: schreifuchs Date: Tue, 11 Mar 2025 10:09:54 +0100 Subject: [PATCH] add github pipeline folder --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bfae49a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: build + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.24 + - name: install apt dependencies + run: apt-get update && apt-get install -y mingw-w64 nsis nodejs libgtk-3-dev libwebkit2gtk-4.1-dev + - name: install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + - name: install wails + run: go install github.com/wailsapp/wails/v2/cmd/wails@latest + - name: build for windows + run: env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_CXXFLAGS="-IC:\msys64\mingw64\include" wails build -ldflags '-extldflags "-static"' -skipbindings -nsis + - name: Archive win bins + uses: actions/upload-artifact@v3 + with: + name: windows-bins + path: build/bin + - name: build for linux + run: wails build -tags webkit2_41 + - name: Archive linux bins + uses: actions/upload-artifact@v3 + with: + name: linux-bins + path: build/bin