-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (67 loc) · 2.32 KB
/
Copy pathbuild.yaml
File metadata and controls
70 lines (67 loc) · 2.32 KB
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
name: Build Binaries for Multiple Architectures
on:
push:
branches:
- main
jobs:
build:
defaults:
run:
shell: bash
strategy:
matrix:
include:
- flag: -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ -DCMAKE_CXX_FLAGS="-static"
binary: ./build/libdptsp.so
upload_name: x86_dptsp.dll
- flag: -DCMAKE_CXX_FLAGS="-m64" -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_CXX_FLAGS="-static"
binary: ./build/libdptsp.so
upload_name: x86_64_dptsp.dll
- flag: -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_CXX_COMPILER=g++-14
binary: ./build/libdptsp.so
upload_name: x86_libdptsp.so
- flag: -DCMAKE_CXX_FLAGS="-m64" -DCMAKE_CXX_COMPILER=g++-14
binary: ./build/libdptsp.so
upload_name: x86_64_libdptsp.so
- flag: -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++-14
binary: ./build/libdptsp.so
upload_name: aarch64_libdptsp.so
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Dep
shell: bash
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install g++-14 gcc-14 g++-mingw-w64-i686 g++-mingw-w64-x86-64 gcc-14-multilib g++-14-multilib linux-libc-dev linux-libc-dev:i386 libc6-i386 libc6-dev-i386 g++-14-aarch64-linux-gnu gcc-14-aarch64-linux-gnu linux-libc-dev
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ${{matrix.flag}} ..
cmake --build ./
- name: Upload Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: ${{ matrix.upload_name }}
path: ${{ matrix.binary }}
build-win-arm:
runs-on: windows-11-arm
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -A ARM64 ..
cmake --build ./ --config Release
- name: Upload Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: aarch64_dptsp.dll
path: ./build/Release/dptsp.dll