-
Notifications
You must be signed in to change notification settings - Fork 130
75 lines (54 loc) · 1.69 KB
/
multi-os-build.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
name: multi-os-build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install packages
uses: delgurth/get-package@v6
with:
# Space-separated list of packages to install using apt-get. Will only run if on ubuntu.
apt-get: libssl-dev
- name: Checkout with submodules
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Compile
run: make
build-osx:
runs-on: macos-latest
steps:
- name: Install packages
uses: delgurth/get-package@v6
with:
# Space-separated list of packages to install using brew install. Will only run if on OSX.
brew: openssl
- name: Checkout with submodules
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Compile
run: CFLAGS="-I/usr/local/opt/openssl/include/" LDFLAGS="-L/usr/local/opt/openssl/lib/" make
build-win64:
runs-on: windows-latest
steps:
- name: Install Cygwin
# You may pin to the exact commit or the version.
# uses: egor-tensin/setup-cygwin@4f96f9fecb8c952fa32ff791b0a77d93d5191bb4
uses: egor-tensin/setup-cygwin@v3
with:
platform: x64 # optional, default is x64
install-dir: c:\tools\cygwin # optional, default is C:\tools\cygwin
packages: gcc-core binutils make zip libssl-devel # optional
- name: Checkout with submodules
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Compile
run: make
- name: Compile Windows-only tools and create a ZIP package
run: make zip