Skip to content

Commit aff4d87

Browse files
committed
Add draft build workflow
1 parent 9dd4c1c commit aff4d87

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build-cpp.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Release C++ Binaries for ARM64 and x86_64
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
include:
13+
- architecture: amd64
14+
target: x86_64-linux-gnu
15+
- architecture: arm64
16+
target: aarch64-linux-gnu
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Install Dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
24+
sudo apt-get install -y g++-multilib gcc-multilib
25+
sudo apt-get install -y build-essential libcurl4-openssl-dev libjson-c-dev
26+
27+
- name: Build
28+
run: |
29+
make ARCH=${{ matrix.architecture }}
30+
env:
31+
CC: ${{ matrix.target }}-gcc
32+
CXX: ${{ matrix.target }}-g++
33+
34+
- name: Upload Artifact
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: dgnsm-${{ matrix.architecture }}
38+
path: path/to/your/binary

0 commit comments

Comments
 (0)