forked from arqma/arqma
-
Notifications
You must be signed in to change notification settings - Fork 1
126 lines (120 loc) · 4.14 KB
/
c-cpp.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: continuous-integration/gh-actions/cli
on: [push, pull_request]
jobs:
build-macos:
runs-on: macOS-11
env:
CCACHE_COMPRESS: 1
CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-macos-build-${{ github.sha }}
restore-keys: ccache-macos-build-
- name: install dependencies
run: HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --file=contrib/apple/brew
- name: build
run: |
ccache --max-size=150M
make release
- name: Upload mac artifacts
uses: actions/upload-artifact@master
with:
name: macos
path: 'build/**/**/arqma*'
build-osx-x64-depends:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: install ArQmA dependencies
run: sudo apt -y install cmake ccache imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools libtinfo5 curl bsdmainutils python3-dev python3-setuptools
- name: build
run: |
ccache --max-size=150M
make depends target=x86_64-apple-darwin -j2
- name: Upload macOS-x64 artifacts
uses: actions/upload-artifact@master
with:
name: macOS-x64
path: 'build/**/**/arqma*'
build-osx-arm64-depends:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Install ArQmA dependencies
run: sudo apt -y install cmake ccache imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools curl bsdmainutils python3-dev python3-setuptools
- name: build
run: |
ccache --max-size=150M
make depends target=aarch64-apple-darwin -j2
- name: Upload macOS-arm64 artifacts
uses: actions/upload-artifact@master
with:
name: macOS-arm64
path: 'build/**/**/arqma*'
build-windows:
runs-on: windows-latest
env:
CCACHE_COMPRESS: 1
CCACHE_TEMPDIR: C:\Users\runneradmin\.ccache-temp
CCACHE_DIR: C:\Users\runneradmin\.ccache
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: C:\Users\runneradmin\.ccache
key: ccache-windows-build-${{ github.sha }}
restore-keys: ccache-windows-build-
- uses: eine/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-libusb libtool binutils git automake autoconf patch mingw-w64-x86_64-ccache
- name: boost
run: pacman --noconfirm -U https://gitlab.com/ArqTras/depends/-/raw/main/mingw-w64-x86_64-boost-1.73.0-3-any.pkg.tar.zst
- name: build
run: |
ccache --max-size=150M
make release-static-win
- name: Upload windows artifacts
uses: actions/upload-artifact@master
with:
name: windows
path: 'build/**/**/arqma*'
build-ubuntu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install ArQmA dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libsodium-dev libhidapi-dev libusb-1.0-0-dev gperf libreadline-dev
- name: build
run: make release -j2
- name: Upload linux artifacts
uses: actions/upload-artifact@master
with:
name: linux
path: 'build/**/**/arqma*'