You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/05/22 07:20:34 UTC
[skywalking-go] branch main updated: Support multiple os build (#42)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-go.git
The following commit(s) were added to refs/heads/main by this push:
new ca1bdee Support multiple os build (#42)
ca1bdee is described below
commit ca1bdee3ee31055527117df42f6c02f9c3e2cf0c
Author: mrproliu <74...@qq.com>
AuthorDate: Mon May 22 07:20:29 2023 +0000
Support multiple os build (#42)
---
.github/workflows/skywalking-go.yaml | 29 +++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/skywalking-go.yaml b/.github/workflows/skywalking-go.yaml
index b1971ee..fd82578 100644
--- a/.github/workflows/skywalking-go.yaml
+++ b/.github/workflows/skywalking-go.yaml
@@ -20,8 +20,8 @@ on:
pull_request:
jobs:
- build:
- name: Build and Test
+ tests:
+ name: Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
@@ -35,12 +35,33 @@ jobs:
submodules: true
- name: Check License
uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
- - name: Get dependencies
- run: make deps
- name: Test
run: make test
- name: Lint
run: make lint
+
+ build:
+ name: Build on ${{ matrix.os }} with Go ${{ matrix.go-version }}
+ needs:
+ - tests
+ strategy:
+ fail-fast: true
+ matrix:
+ os: [ ubuntu, macos, windows ]
+ go-version: [ 1.18, 1.19 ]
+ runs-on: ${{ matrix.os }}-latest
+ timeout-minutes: 60
+ steps:
+ - name: Set up Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go-version }}
+ - name: Check out code into the Go module directory
+ uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: Get dependencies
+ run: make deps
- name: Build
run: make build