Skip to content

Commit

Permalink
[GH Action] Added arm64 gh actions for ubuntu (#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold authored Feb 6, 2025
1 parent 81795fe commit b9f2fe5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-24.04-arm, ubuntu-22.04-arm]

runs-on: ${{ matrix.os }}

Expand All @@ -25,17 +25,17 @@ jobs:
run: |
sudo apt update
if [ "${{ matrix.os }}" == "ubuntu-24.04" ]; then
if [[ ${{ matrix.os }} == ubuntu-24.04* ]]; then
sudo apt-get install ninja-build doxygen graphviz libcurl4-openssl-dev libprotobuf-dev libprotoc-dev protobuf-compiler libhdf5-dev libyaml-cpp-dev
sudo apt-get install qt6-base-dev qt6-svg-dev
sudo apt-get install libgtest-dev
sudo apt-get install python3 python3-venv python3-dev
elif [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
elif [[ ${{ matrix.os }} == ubuntu-22.04* ]]; then
sudo apt-get install ninja-build doxygen graphviz libcurl4-openssl-dev libprotobuf-dev libprotoc-dev protobuf-compiler libhdf5-dev libyaml-cpp-dev
sudo apt-get install qtbase5-dev libqt5opengl5-dev libqt5svg5-dev
sudo apt-get install libgtest-dev
sudo apt-get install python3 python3-venv python3-dev
elif [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then
elif [[ ${{ matrix.os }} == ubuntu-20.04* ]]; then
sudo apt-get install ninja-build doxygen graphviz libcurl4-openssl-dev libprotobuf-dev libprotoc-dev protobuf-compiler libhdf5-dev libyaml-cpp-dev
sudo apt-get install qt5-default libqt5opengl5-dev libqt5svg5-dev
sudo apt-get install libgtest-dev
Expand All @@ -44,13 +44,13 @@ jobs:
- name: Set variables
run: |
if [ "${{ matrix.os }}" == "ubuntu-24.04" ]; then
if [[ ${{ matrix.os }} == ubuntu-24.04* ]]; then
echo "ubuntu_codename=noble" >> "$GITHUB_ENV"
echo "python_version=3" >> "$GITHUB_ENV" # => default python 3 version
elif [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
elif [[ ${{ matrix.os }} == ubuntu-22.04* ]]; then
echo "ubuntu_codename=jammy" >> "$GITHUB_ENV"
echo "python_version=3" >> "$GITHUB_ENV" # => default python 3 version
elif [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then
elif [[ ${{ matrix.os }} == ubuntu-20.04* ]]; then
echo "ubuntu_codename=focal" >> "$GITHUB_ENV"
echo "python_version=3.9" >> "$GITHUB_ENV"
fi
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu \
-DCMAKE_INSTALL_LIBDIR=lib/$(arch)-linux-gnu \
-DPython_FIND_VIRTUALENV=ONLY
shell: bash

Expand Down

0 comments on commit b9f2fe5

Please sign in to comment.