Merge branch 'master' of github.com:Fokir/Ianus-Split-Tunnel-VPN #76
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build-and-vet: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| # Only init submodules required for build (go.mod replace directives). | |
| # Other refs/* submodules are reference-only and may use SSH URLs. | |
| - name: Init build-required submodules | |
| run: git submodule update --init --depth 1 refs/amneziawg-go refs/tailscale-wf | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| # Create a stub embed directory so ui/ package compiles in CI. | |
| - name: Create UI embed stub | |
| run: mkdir -p ui/frontend/dist && touch ui/frontend/dist/.gitkeep | |
| - name: Go vet (Windows) | |
| env: | |
| GOOS: windows | |
| GOARCH: amd64 | |
| run: go vet ./... | |
| - name: Build Windows | |
| env: | |
| GOOS: windows | |
| GOARCH: amd64 | |
| run: go build ./... | |
| # macOS GUI (./ui/) requires CGO for Wails WKWebView bridge, | |
| # so we skip it in cross-compilation and only build daemon + libraries. | |
| - name: Build macOS arm64 (daemon) | |
| env: | |
| CGO_ENABLED: "0" | |
| GOOS: darwin | |
| GOARCH: arm64 | |
| run: go build ./cmd/... ./internal/... | |
| - name: Build macOS amd64 (daemon) | |
| env: | |
| CGO_ENABLED: "0" | |
| GOOS: darwin | |
| GOARCH: amd64 | |
| run: go build ./cmd/... ./internal/... | |
| - name: Tests | |
| run: go test ./... |