@@ -37,13 +37,13 @@ jobs:
3737 " GCC 10" ,
3838 " Clang 9" ,
3939 " Clang 10" ,
40- " Clang 11" ,
40+ # (CI related error) "Clang 11",
4141 " Clang 12"
4242 ]
4343 name : " Ubuntu Linux 20.04 (${{ matrix.compiler }})"
4444 runs-on : ubuntu-20.04
4545 steps :
46- - uses : actions/checkout@v3
46+ - uses : actions/checkout@v4
4747 - name : ccache
4848 uses : hendrikmuhs/ccache-action@v1
4949 with :
@@ -78,14 +78,14 @@ jobs:
7878 [
7979 " GCC 10" ,
8080 " GCC 13" ,
81- " Clang 11" ,
81+ # (CI related error) "Clang 11",
8282 " Clang 15"
8383 ]
8484 # gcc 13 only in github runners and not inside official repo
8585 name : " Ubuntu Linux 22.04 (${{ matrix.compiler }})"
8686 runs-on : ubuntu-22.04
8787 steps :
88- - uses : actions/checkout@v3
88+ - uses : actions/checkout@v4
8989 - name : ccache
9090 uses : hendrikmuhs/ccache-action@v1
9191 with :
@@ -113,68 +113,49 @@ jobs:
113113 - name : " benchmark"
114114 run : ./build/src/libunicode/libunicode_benchmark
115115
116-
117116 unknown_os :
118- strategy :
119- fail-fast : false
120117 name : " Unknown OS"
121118 runs-on : ubuntu-22.04
122119 steps :
123- - uses : actions/checkout@v3
120+ - uses : actions/checkout@v4
124121 - name : ccache
125122 uses : hendrikmuhs/ccache-action@v1
126123 with :
127- key : " ccache-ubuntu_2004-${{ matrix.compiler }} "
124+ key : " ccache-ubuntu_2004-unknown-os "
128125 max-size : 256M
129126 - name : " Update package database"
130127 run : sudo apt -q update
131128 - name : " install dependencies"
132- run : OS_OVERRIDE=UNKNOWN ./scripts/install-deps.sh
133- - name : " create build directory"
134- run : mkdir build
135- - name : " cmake"
136129 run : |
137- BUILD_DIR="build" \
138- CMAKE_BUILD_TYPE="RelWithDebInfo" \
139- ./scripts/ci-prepare.sh
130+ set -ex
131+ sudo apt install -q -y ninja-build gcc build-essential cmake debhelper dpkg-dev g++ libc6-dev
132+ OS_OVERRIDE=UNKNOWN ./scripts/install-deps.sh
133+ - name : " cmake"
134+ run : cmake --preset linux-gcc-release
140135 - name : " build"
141- run : cmake --build build/ -- -j3
136+ run : cmake --build --preset linux-gcc-release -j3
142137 - name : " test"
143- run : ./build/src/libunicode/unicode_test
138+ run : ctest --preset linux-gcc-release
144139
145140 windows :
146141 name : " Windows"
147142 runs-on : windows-latest
148143 steps :
149- - uses : actions/checkout@v3
150- - name : " Fetch embedded dependencies"
151- shell : powershell
152- run : |
153- ./scripts/install-deps.ps1
154- type ./_deps/sources/CMakeLists.txt
144+ - uses : actions/checkout@v4
155145 - name : " vcpkg: Install dependencies"
156- uses : lukka/run-vcpkg@v5
146+ uses : lukka/run-vcpkg@v11.1
157147 id : runvcpkg
158148 with :
159- vcpkgArguments : fmt range-v3
160149 vcpkgDirectory : ${{ runner.workspace }}/vcpkg/
161- vcpkgGitCommitId : 21fa4ccecfefd96bb16faac4af17fcb900d4f8b3
162- vcpkgTriplet : x64-windows
163- - name : " create build directory"
164- shell : powershell
165- run : |
166- If (!(Test-Path build))
167- {
168- New-Item -ItemType Directory -Force -Path build
169- }
150+ vcpkgGitCommitId : 80403036a665cb8fcc1a1b3e17593d20b03b2489
151+ - name : " List cmake presets"
152+ run : cmake --list-presets
170153 - name : " Generate build files"
171- env :
172- WORKSPACE : ${{ runner.workspace }}
173- run : ./scripts/ci-prepare.ps1
154+ run : cmake --preset windows-cl-release -DCMAKE_TOOLCHAIN_FILE="${{ runner.workspace }}\vcpkg\scripts\buildsystems\vcpkg.cmake"
174155 - name : " Build"
175- run : cmake --build build/ --config Release
176- - name : " test: libterminal "
177- run : .\build\src\libunicode\Release\unicode_test.exe
156+ run : cmake --build --preset windows-cl-release
157+ - name : " test"
158+ run : ctest --preset windows-cl-release
178159
179160 Fedora :
180161 name : Fedora
@@ -185,12 +166,13 @@ jobs:
185166 - uses : actions/checkout@v4
186167 - name : Install build dependencies
187168 run : |
169+ dnf install -y curl
188170 PREPARE_ONLY_EMBEDS=OFF SYSDEP_ASSUME_YES=ON ./scripts/install-deps.sh
189171 dnf install -y unicode-ucd
190172 - name : CMake build
191173 run : |
192- cmake . -G Ninja -B build -DBUILD_SHARED_LIBS=ON -DLIBUNICODE_UCD_DIR=/usr/share/unicode/ucd
193- cmake --build build -j$(nproc)
174+ cmake --preset linux-gcc-debug -DLIBUNICODE_UCD_DIR=/usr/share/unicode/ucd
175+ cmake --build --preset linux-gcc-debug -j$(nproc)
194176 - name : test
195177 run : |
196- ctest --test-dir build
178+ ctest --preset linux-gcc-debug
0 commit comments