Skip to content

Commit 7d36c4e

Browse files
committed
added aarch64 CI/CD builds
1 parent 3bd4cc7 commit 7d36c4e

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Linux aarch64 Build
2+
3+
on:
4+
push:
5+
branches: ["main", "dev"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install cross-compilation toolchain
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y cmake g++-aarch64-linux-gnu
21+
22+
- name: Configure CMake
23+
run: |
24+
cmake -B build \
25+
-DCMAKE_BUILD_TYPE=Dev_Release \
26+
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ \
27+
-DCMAKE_SYSTEM_NAME=Linux \
28+
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
29+
-S ${{ github.workspace }}
30+
31+
- name: Build
32+
run: cmake --build build --config Release
33+
34+
- name: Upload binary artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: vmaware-linux-aarch64
38+
path: build/vmaware
39+
if-no-files-found: error
40+
retention-days: 30
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: macOS aarch64 Build
2+
3+
on:
4+
push:
5+
branches: ["main", "dev"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Configure CMake
18+
run: |
19+
cmake -B build \
20+
-DCMAKE_BUILD_TYPE=Dev_Release \
21+
-DCMAKE_OSX_ARCHITECTURES=arm64 \
22+
-S ${{ github.workspace }}
23+
24+
- name: Build
25+
run: cmake --build build --config Release
26+
27+
- name: Upload binary artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: vmaware-macos-aarch64
31+
path: build/vmaware
32+
if-no-files-found: error
33+
retention-days: 30

0 commit comments

Comments
 (0)