-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 955 Bytes
/
ci.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
name: ci
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: '0 10 * * *'
push:
branches:
- 'master'
- 'releases/v*'
tags:
- 'v*'
pull_request:
paths-ignore:
- '.github/xgo-releases.json'
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version:
- "1.20"
- "1.21"
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Xgo
uses: ./
with:
go_version: ${{ matrix.go_version }}
targets: windows/amd64,linux/amd64,linux/arm64,linux/arm/v7,darwin/amd64,darwin/arm64
v: true
x: false
ldflags: -s -w
trimpath: true
working_dir: ./test
-
name: Check
run: |
sudo apt-get -qq install tree
tree -f -h ./test/build