-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to check for compilation failures on older cmake/compilers Adapt .editorconfig
- Loading branch information
1 parent
d7308d0
commit 1064136
Showing
2 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Stable Compilation | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
docker: | ||
name: ${{ matrix.image }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- ubuntu:18.04 # CMake 3.10.2 - g++ 7.4.0 - LTS | ||
- debian:10 # CMake 3.13.4 - g++ 8.3.0 - old | ||
- ubuntu:20.04 # CMake 3.16.3 - g++ 9.3.0 - LTS | ||
- ubuntu:21.04 # CMake 3.18.4 - g++ 10.3.0 - stable | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
export DEBIAN_FRONTEND="noninteractive" | ||
apt-get update | ||
apt-get install -y --no-install-recommends --no-install-suggests \ | ||
build-essential cmake ninja-build git \ | ||
libicu-dev libexpat1-dev | ||
- name: Compile | ||
run: | | ||
mkdir build | ||
cd build | ||
# cmake < 3.13 does not support '-B' | ||
cmake -G Ninja .. \ | ||
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr | ||
cmake --build . | ||
- name: Install | ||
run: | | ||
export DESTDIR=$PWD/local-install | ||
# cmake < 3.16 does not support '--install' | ||
cmake --build build --target install | ||
- name: Test | ||
run: cmake --build build --target check |