-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
66 lines (50 loc) · 2.07 KB
/
cmake-cross-compile.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
name: ARM builds
on: push
env:
BUILD_TYPE: Release
VERBOSE: 1
jobs:
build-anisette-server-aarch64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update && sudo apt-get install -y gdc-13-aarch64-linux-gnu dub libz-dev
- name: Build
run: dub build :anisette-server -b release --compiler=aarch64-linux-gnu-gdc-13 -c "static"
- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-aarch64"
- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-aarch64.dbg" "${{github.workspace}}/bin/anisette-server-aarch64"
- uses: actions/upload-artifact@v3
with:
name: anisette-server-aarch64
path: |
${{github.workspace}}/bin/anisette-server-aarch64
${{github.workspace}}/bin/anisette-server-aarch64.dbg
build-anisette-server-armv7:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update && sudo apt-get install -y gdc-13-arm-linux-gnueabihf dub libz-dev
- name: Build
run: dub build :anisette-server -b release --compiler=arm-linux-gnueabihf-gdc-13 -c "static"
- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-armv7"
- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-armv7.dbg" "${{github.workspace}}/bin/anisette-server-armv7"
- uses: actions/upload-artifact@v3
with:
name: anisette-server-armv7
path: |
${{github.workspace}}/bin/anisette-server-armv7
${{github.workspace}}/bin/anisette-server-armv7.dbg