Skip to content

Commit

Permalink
add ubuntu 22.04 handling and checks in action
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Nov 4, 2023
1 parent 42114b2 commit 6cb0f3f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,48 @@ jobs:
"Clang 11",
"Clang 12"
]
name: "Ubuntu Linux 20.04 (${{ matrix.compiler }})"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: "ccache-ubuntu_2004-${{ matrix.compiler }}"
max-size: 256M
- name: "Update package database"
run: sudo apt -q update
- name: "install dependencies"
env:
COMPILER: "${{ matrix.compiler }}"
run: ./scripts/install-deps.sh
- name: "create build directory"
run: mkdir build
- name: "cmake"
env:
COMPILER: "${{ matrix.compiler }}"
run: |
BUILD_DIR="build" \
CMAKE_BUILD_TYPE="RelWithDebInfo" \
./scripts/ci-prepare.sh
- name: "build"
run: cmake --build build/ -- -j3
- name: "test"
run: ./build/src/libunicode/unicode_test


ubuntu_matrix_22:
strategy:
fail-fast: false
matrix:
compiler:
[
"GCC 10",
"GCC 13",
"Clang 11"
"Clang 15"
]
# gcc 13 only in github runners and not inside official repo
name: "Ubuntu Linux 22.04 (${{ matrix.compiler }})"
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ install_deps_ubuntu()
fi

case $RELEASE in
"18.04" | "19.04" | "20.04" | "21.04")
"18.04" | "19.04" | "20.04" | "21.04" | "22.04")
fetch_and_unpack_fmtlib
fetch_and_unpack_Catch2
;;
Expand Down

0 comments on commit 6cb0f3f

Please sign in to comment.