Skip to content

Commit 7f50d11

Browse files
committed
add hipo to cpack again and try linux arm runner
1 parent be0b2c1 commit 7f50d11

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/release-cpack.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,35 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
arch: [x64, arm64]
13+
arch: [x64]
1414
steps:
1515
- uses: actions/checkout@v3
16-
- name: Install dependencies
16+
- name: Build
1717
run: |
18-
sudo apt-get update
19-
sudo apt-get install -y cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
18+
cmake -B build -DHIPO=ON -DBUILD_OPENBLAS=ON -DBUILD_SHARED_LIBS=OFF
19+
cmake --build build
20+
cd build && cpack
21+
22+
- name: Upload artifacts
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: linux-${{ matrix.arch }}
26+
path: build/*.tar.gz
27+
28+
build-linux-arm:
29+
runs-on: ubuntu-24.04-arm
30+
strategy:
31+
matrix:
32+
arch: [arm64]
33+
steps:
34+
- uses: actions/checkout@v3
35+
2036
- name: Build
2137
run: |
22-
if [ "${{ matrix.arch }}" == "arm64" ]; then
23-
cmake -B build -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
24-
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ \
25-
-DHIPO=ON -DBUILD_OPENBLAS=ON
26-
else
27-
cmake -B build
28-
fi
38+
cmake -B build -DHIPO=ON -DBUILD_OPENBLAS=ON
2939
cmake --build build
3040
cd build && cpack
41+
3142
- name: Upload artifacts
3243
uses: actions/upload-artifact@v4
3344
with:
@@ -43,7 +54,7 @@ jobs:
4354
- uses: actions/checkout@v3
4455
- name: Build
4556
run: |
46-
cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} \
57+
cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} `
4758
-DHIPO=ON -DBUILD_OPENBLAS=ON
4859
cmake --build build --config Release
4960
cd build
@@ -63,11 +74,12 @@ jobs:
6374
- uses: actions/checkout@v3
6475
- name: Build
6576
run: |
66-
cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} \
77+
cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} `
6778
-DHIPO=ON -DBUILD_OPENBLAS=ON
6879
cmake --build build --config Release
6980
cd build
7081
cpack -C Release
82+
7183
- name: Upload artifacts
7284
uses: actions/upload-artifact@v4
7385
with:
@@ -81,8 +93,9 @@ jobs:
8193
- name: Build Universal Binary
8294
run: |
8395
cmake -B build -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
84-
cmake --build build
96+
cmake --build build -DHIPO=ON
8597
cd build && cpack
98+
8699
- name: Upload artifacts
87100
uses: actions/upload-artifact@v4
88101
with:

0 commit comments

Comments
 (0)