Skip to content

Commit d35a5db

Browse files
[GH Actions] Activated ARM64 Ubuntu builds
1 parent f65f470 commit d35a5db

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build-ubuntu.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
library_type: [static, shared, object]
20-
os: [ubuntu-24.04, ubuntu-22.04]
20+
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-24.04-arm, ubuntu-22.04-arm]
2121

2222
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
2323
# You can convert this to a matrix build if you need cross-platform coverage.
@@ -41,6 +41,13 @@ jobs:
4141
echo "tcp_pubsub_library_type=OBJECT" >> "$GITHUB_ENV"
4242
echo "package_postfix=object" >> "$GITHUB_ENV"
4343
fi
44+
45+
# Get the ubuntu version
46+
os_version=$(lsb_release -r | awk '{print $2}')
47+
echo "os_name=ubuntu-${os_version}" >> "$GITHUB_ENV"
48+
49+
# Get cpu architecture for the package name (therefore the dpkg architecture, which differs from the arch architecture)
50+
echo "cpu_architecture=$(dpkg --print-architecture)" >> "$GITHUB_ENV"
4451
4552
- name: Checkout
4653
uses: actions/checkout@v4
@@ -90,15 +97,15 @@ jobs:
9097

9198
- name: Rename .deb installer
9299
run: |
93-
mv *.deb '${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ matrix.os }}-${{ env.package_postfix }}.deb'
100+
mv *.deb '${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ env.os_name }}_${{ env.cpu_architecture }}-${{ env.package_postfix }}.deb'
94101
shell: bash
95102
working-directory: ${{github.workspace}}/_build/_package/
96103
if: ${{ matrix.library_type != 'object' }}
97104

98105
- name: Upload binaries
99106
uses: actions/upload-artifact@v4
100107
with:
101-
name: ${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ matrix.os }}-${{ env.package_postfix }}
108+
name: ${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ env.os_name }}_${{ env.cpu_architecture }}-${{ env.package_postfix }}
102109
path: ${{github.workspace}}/_build/_package/*.deb
103110
if: ${{ matrix.library_type != 'object' }}
104111

0 commit comments

Comments
 (0)