Skip to content

Commit

Permalink
Fixed if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold authored Feb 6, 2025
1 parent bb4fbc2 commit 2357c4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2357c4b

Please sign in to comment.