-
-
Notifications
You must be signed in to change notification settings - Fork 27
77 lines (60 loc) · 1.9 KB
/
go.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Go
on: [ push, pull_request ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cross-build dependencies
run: sudo apt-get -qq -y update && sudo apt-get -qq -y --no-install-recommends install make gcc gcc-multilib gcc-mingw-w64 autoconf automake libtool pkgconf ca-certificates wget patch sed git-core moreutils zip golang-go
- name: Show info about build environment
run: |
cat /etc/debian_version
go version
gcc --version
x86_64-w64-mingw32-gcc --version
- name: Build 3rd-party deps
run: make 3rdparty-all
- name: Upload 3rd-party build artifacts
uses: actions/upload-artifact@v4
with:
name: 3rdparty-linux
path: _3rdparty/tgt
- name: Run unit tests
run: make unit-test
- name: Build binaries
run: make release VERSIONSUFFIX=+$GITHUB_SHA
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: spyre-zips
path: spyre-*.zip
build-macosx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Update build environment
run: |
brew update
- name: Install build-dependencies
run: |
brew unlink pkg-config
brew install \
make autoconf automake libtool pkgconf wget patchutils \
gnu-sed gnu-tar ca-certificates zip go
- name: Build 3rd-party deps
run: gmake 3rdparty-all
- name: Upload 3rd-party build artifacts
uses: actions/upload-artifact@v4
with:
name: 3rdparty-macosx
path: _3rdparty/tgt
- name: Run unit tests
run: gmake unit-test
- name: Build binaries
run: gmake release VERSIONSUFFIX=+$GITHUB_SHA
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: spyre-macosx-zips
path: spyre-*.zip