Skip to content

Commit b2ab238

Browse files
committed
Drop Ubuntu 20.04. Use workflow env vars
1 parent e7c852f commit b2ab238

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
os:
2424
- "macos-14"
2525
- "macos-15"
26-
- "ubuntu-20.04"
2726
- "ubuntu-22.04"
2827
- "ubuntu-24.04"
2928
runs-on: "${{matrix.os}}"
@@ -45,25 +44,17 @@ jobs:
4544
run: "brew install coreutils"
4645

4746
- if: "matrix.os == 'macos-14'"
48-
name: "Install clang-16 (for c++20)"
47+
name: "Run unit tests"
48+
env:
49+
CC: "/opt/homebrew/opt/llvm@16/bin/clang"
50+
CXX: "/opt/homebrew/opt/llvm@16/bin/clang++"
4951
run: |-
5052
brew install llvm@16
51-
echo "export CC=/opt/homebrew/opt/llvm@16/bin/clang" >> /Users/runner/.bashrc
52-
echo "export CXX=/opt/homebrew/opt/llvm@16/bin/clang++" >> /Users/runner/.bashrc
53-
54-
- if: "matrix.os == 'ubuntu-20.04'"
55-
name: "Install gcc-10 (for c++20)"
56-
run: |-
57-
sudo apt-get update
58-
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
59-
g++-10 \
60-
gcc-10
61-
sudo ln --symbolic --force /usr/bin/gcc-10 /usr/bin/cc
62-
sudo ln --symbolic --force /usr/bin/g++-10 /usr/bin/c++
63-
sudo ln --symbolic --force /usr/bin/cpp-10 /usr/bin/cpp
53+
task clean
54+
task test-all
6455
65-
- name: "Run unit tests"
56+
- if: "false == (matrix.os == 'macos-14')"
57+
name: "Run unit tests"
6658
run: |-
67-
source ~/.bashrc
6859
task clean
6960
task test-all

0 commit comments

Comments
 (0)