mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-22 16:13:31 +01:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Test Build On Platforms
|
|
on: [pull_request]
|
|
jobs:
|
|
test_build:
|
|
strategy:
|
|
matrix:
|
|
os: [ windows, linux, darwin ]
|
|
go-version: [1.17.x]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Cache Go modules
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-test-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-test-${{ matrix.os }}
|
|
|
|
- name: Install modules
|
|
run: GOOS=${{ matrix.os }} go mod tidy
|
|
|
|
- name: run build client
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: client
|
|
|
|
- name: run build management
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: management
|
|
|
|
- name: run build signal
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: signal
|