diff --git a/.github/workflows/golang-test-darwin.yml b/.github/workflows/golang-test-darwin.yml index d4887a19c..2f221a8a5 100644 --- a/.github/workflows/golang-test-darwin.yml +++ b/.github/workflows/golang-test-darwin.yml @@ -3,15 +3,12 @@ on: [push,pull_request] jobs: test: - strategy: - matrix: - go-version: [1.18.x] runs-on: macos-latest steps: - name: Install Go uses: actions/setup-go@v2 with: - go-version: ${{ matrix.go-version }} + go-version: 1.18.x - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index 66a4e8928..a87d8a68f 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -5,13 +5,13 @@ jobs: test: strategy: matrix: - go-version: [1.18.x] + arch: ['386','amd64'] runs-on: ubuntu-latest steps: - name: Install Go uses: actions/setup-go@v2 with: - go-version: ${{ matrix.go-version }} + go-version: 1.18.x - name: Cache Go modules @@ -32,4 +32,4 @@ jobs: run: go mod tidy - name: Test - run: go test -exec 'sudo --preserve-env=CI' -timeout 5m -p 1 ./... + run: GOARCH=${{ matrix.arch }} go test -exec 'sudo --preserve-env=CI' -timeout 5m -p 1 ./... diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index a3f9320e7..2c0264c75 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -18,13 +18,8 @@ jobs: test: needs: pre - strategy: - matrix: - go-version: [1.18.x] runs-on: windows-latest steps: - - name: disable defender - run: Set-MpPreference -DisableRealtimeMonitoring $true - name: Checkout code uses: actions/checkout@v2 @@ -32,27 +27,22 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: ${{ matrix.go-version }} + go-version: 1.18.x - uses: actions/cache@v2 with: path: | %LocalAppData%\go-build - ~/go/pkg/mod + ~\go\pkg\mod + ~\AppData\Local\go-build key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - - name: enable defender - run: Set-MpPreference -DisableRealtimeMonitoring $false - - uses: actions/download-artifact@v2 with: name: syso path: iface\ -# - name: Install modules -# run: go mod tidy - - name: Test - run: go test -tags=load_wgnt_from_rsrc -timeout 5m -p 1 ./... + run: go test -tags=load_wgnt_from_rsrc -timeout 5m -p 1 ./... \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0b7b83fae..68819a6f8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,6 +13,7 @@ builds: - amd64 - arm64 - mips + - 386 gomips: - hardfloat - softfloat @@ -21,6 +22,8 @@ builds: goarch: arm64 - goos: windows goarch: arm + - goos: windows + goarch: 386 ldflags: - -s -w -X github.com/netbirdio/netbird/client/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser mod_timestamp: '{{ .CommitTimestamp }}' diff --git a/client/ui/client_ui.go b/client/ui/client_ui.go index 41857daed..6701958a8 100644 --- a/client/ui/client_ui.go +++ b/client/ui/client_ui.go @@ -1,3 +1,7 @@ +//go:build !(linux && 386) +// +build !linux !386 + +// skipping linux 32 bits build and tests package main import (