Skip to content

Commit 792cc6c

Browse files
committed
Try to build for arm64 as well
1 parent 7b6441a commit 792cc6c

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-22.04]
16+
os: [ubuntu-22.04, ubuntu-22.04-arm]
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -67,4 +67,4 @@ jobs:
6767
- name: Create Release
6868
uses: ncipollo/release-action@v1
6969
with:
70-
artifacts: "hs5.xz"
70+
artifacts: "hs5*.xz"

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.21)
2-
project(hs5 VERSION 0.1.4 LANGUAGES CXX C)
2+
project(hs5 VERSION 0.1.6 LANGUAGES CXX C)
33

44
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
55

@@ -19,7 +19,7 @@ set(APIGEN_SCHEMAS
1919
ListParams
2020
ListResp
2121
)
22-
22+
2323

2424
add_custom_target(apigen)
2525
foreach(SCHEMA ${APIGEN_SCHEMAS})

build.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ cmake --preset ninja-multi-vcpkg
2121

2222
cmake --build --preset ninja-vcpkg-release
2323

24-
xz -z -c ./builds/ninja-multi-vcpkg/Release/hs5 > ./hs5.xz
24+
OUT_FN=hs5.xz
25+
ARCH=$(uname -m)
26+
echo "ARCH: $ARCH"
27+
if [[ "$ARCH" == "aarch64" ]]; then
28+
OUT_FN=hs5-arm64.xz
29+
fi
30+
31+
xz -z -c ./builds/ninja-multi-vcpkg/Release/hs5 > ./$OUT_FN
2532

0 commit comments

Comments
 (0)