-
Notifications
You must be signed in to change notification settings - Fork 28
42 lines (37 loc) · 1.05 KB
/
macos.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
name: macos
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
strategy:
matrix:
go-version: [1.22.x]
# add macos-12 when runners are available on github.
os: [macos-11]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
path: github.com/vanadium/core
cache: true
- name: Setup environment
run: |
echo "VDLPATH=${GITHUB_WORKSPACE}/github.com/vanadium/core" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=/usr/local/Cellar/[email protected]/1.1.1l_1/lib/pkgconfig" >> $GITHUB_ENV
cd github.com/vanadium/core
go mod download golang.org/x/tools
go install golang.org/x/tools/cmd/goimports
- name: Test
run: |
cd github.com/vanadium/core
echo "VDLPATH: $VDLPATH"
make test
make test-integration