Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Clang builds to Ubuntu, CentOS7, CentOS8 (+ ossl), MacOS, Debian9 and Windows-msys2 workflows #1666

Merged
merged 15 commits into from
Nov 9, 2021
67 changes: 56 additions & 11 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,19 @@ env:

jobs:
tests:
strategy:
matrix:
cc: ["gcc"]
cxx: ["g++"]
include:
- cc: clang
cxx: clang++

runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -54,12 +65,23 @@ jobs:
set -x
cd ${LOCAL_BUILDS}/rnp-build
cpack -G DEB -D CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS="${BOTAN_INSTALL}/lib;${JSONC_INSTALL}/lib;${GPG_INSTALL}/lib"

cmake-offline-googletest-src:
strategy:
matrix:
cc: ["gcc"]
cxx: ["g++"]
include:
- cc: clang
maxirmx marked this conversation as resolved.
Show resolved Hide resolved
cxx: clang++

runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
GTEST_SOURCES: /usr/src/googletest
RNP_TESTS: rnp_tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -88,12 +110,23 @@ jobs:
[ -d "${LOCAL_BUILDS}/rnp-build/src/tests" ]
[ -d "${LOCAL_BUILDS}/rnp-build/src/tests/googletest-build" ]
[ ! -d "${LOCAL_BUILDS}/rnp-build/src/tests/googletest-src" ]

cmake-offline-googletest:
strategy:
matrix:
cc: ["gcc"]
maxirmx marked this conversation as resolved.
Show resolved Hide resolved
cxx: ["g++"]
include:
- cc: clang
cxx: clang++

runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
DOWNLOAD_GTEST: Off
RNP_TESTS: rnp_tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -131,14 +164,25 @@ jobs:
[ -d "${LOCAL_BUILDS}/rnp-build/src/tests" ]
[ ! -d "${LOCAL_BUILDS}/rnp-build/src/tests/googletest-build" ]
[ ! -d "${LOCAL_BUILDS}/rnp-build/src/tests/googletest-src" ]

cmake-disable-rubyrnp:
env:
DOWNLOAD_RUBYRNP: Off
RNP_TESTS: rnp_tests.hash_test_success
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
timeout-minutes: 50
steps:
strategy:
matrix:
cc: ["gcc"]
maxirmx marked this conversation as resolved.
Show resolved Hide resolved
cxx: ["g++"]
include:
- cc: clang
cxx: clang++

runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
DOWNLOAD_RUBYRNP: Off
RNP_TESTS: rnp_tests.hash_test_success
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
Expand All @@ -164,6 +208,7 @@ jobs:
ls -la "${RNP_INSTALL}/lib/"librnp*.so
! ctest -N | grep 'ruby' > /dev/null
! ls -la src/tests/ | grep 'ruby' > /dev/null

maxirmx marked this conversation as resolved.
Show resolved Hide resolved
version-cmake-up-to-date:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand Down