Skip to content

Commit

Permalink
Check if ARM hostet runners are available as described
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Nov 6, 2023
1 parent 4e8ae35 commit 01e4624
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
library_type: [static, shared]
os: [ubuntu-22.04, ubuntu-20.04]
os: [ubuntu-22.04, ubuntu-20.04, buildjet-4vcpu-ubuntu-2204-arm]

# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
Expand All @@ -27,6 +27,11 @@ jobs:

- name: Set Variables
run: |
echo "cpu_architecture=$(uname -m)" >> "$GITHUB_ENV"
source /etc/os-release
echo "os_name=ubuntu-$VERSION_ID" >> "$GITHUB_ENV"
if [[ '${{ matrix.library_type }}' == 'static' ]]; then
echo "build_shared_libs=OFF" >> "$GITHUB_ENV"
echo "package_postfix=static" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -76,14 +81,14 @@ jobs:

- name: Rename .deb installer
run: |
mv *.deb '${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ matrix.os }}-${{ env.package_postfix }}.deb'
mv *.deb '${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ env.os_name }}-${{ env.cpu_architecture }}-${{ env.package_postfix }}.deb'
shell: bash
working-directory: ${{github.workspace}}/_build/_package/

- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: ${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ matrix.os }}-${{ env.package_postfix }}
name: ${{ env.PROJECT_NAME }}-${{ env.CMAKE_PROJECT_VERSION }}-${{ env.os_name }}-${{ env.cpu_architecture }}-${{ env.package_postfix }}
path: ${{github.workspace}}/_build/_package/*.deb

############################################
Expand Down

0 comments on commit 01e4624

Please sign in to comment.