mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-17 16:18:34 +08:00
refactor
This commit is contained in:
parent
640c0f1b38
commit
d2a0f2057e
1 changed files with 28 additions and 26 deletions
52
.github/workflows/test.yml
vendored
52
.github/workflows/test.yml
vendored
|
|
@ -12,21 +12,42 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.18
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
|
||||
env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build main.go
|
||||
cd netclient
|
||||
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
|
||||
env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build main.go
|
||||
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go
|
||||
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go
|
||||
linux-gui:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
|
||||
env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags=gui main.go
|
||||
#env CGO_ENABLED=1 GOOS=freebsd GOARCH=amd64 go build -tags=gui main.go
|
||||
env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=gui main.go
|
||||
#env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui main.go
|
||||
test-linux:
|
||||
mac-gui:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
- name: Build mac
|
||||
run: |
|
||||
xcode-select --install
|
||||
env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=gui main.go
|
||||
tests:
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -44,22 +65,3 @@ jobs:
|
|||
env:
|
||||
DATABASE: sqlite
|
||||
CLIENT_MODE: "off"
|
||||
test-darwin:
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
- name: run tests
|
||||
run: |
|
||||
xcode-select install
|
||||
go test -p 1 ./... -v
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
CLIENT_MODE: "off"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue