-
Notifications
You must be signed in to change notification settings - Fork 58
54 lines (53 loc) · 1.54 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: FISCO-BCOS Go-SDK GitHub Actions
on:
push:
# branches-ignore:
# - "**-1.3"
# tags-ignore:
# - v1.*
paths-ignore:
- "Changelog.md"
- "README.md"
pull_request:
# branches:
# - '**'
release:
types: [published, created, edited]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ["1.21"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
# - uses: actions/cache@v1
# id: cache
# with:
# path: deps/
# key: deps-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
# restore-keys: |
# deps-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
# deps-${{ runner.os }}-${{ github.ref }}
# deps-${{ runner.os }}-
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: check commit
if: ${{ runner.os == 'Linux' && github.base_ref != 'master' && github.event_name == 'pull_request' }}
run: bash .ci/check-commit.sh
- name: mod tidy
run: go mod tidy
- name: test all
if: ${{ runner.os == 'Linux' }}
run: bash -x .ci/integration_test.sh -a
- name: install zlib
if: ${{ runner.os == 'macOS' }}
run: brew install zlib
- name: test without amop
if: ${{ runner.os == 'macOS' }}
run: bash .ci/integration_test.sh