summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml78
1 files changed, 72 insertions, 6 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 51fd0c3..a7931d1 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -110,14 +110,14 @@ jobs:
-DCMAKE_BUILD_TYPE=Release .
- name: Build
- run: cmake --build build --config "Release" --parallel ${{ env.CORES }}
+ run: cmake --build build --parallel ${{ env.CORES }}
- name: Test
run: |
mkdir -p "build/Testing/Temporary"
cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
export PATH="$PWD/build/src/lib:$PATH"
- ctest --parallel ${{ env.CORES }} --test-dir build -C Debug --output-on-failure
+ ctest --parallel ${{ env.CORES }} --test-dir build --output-on-failure
cmake-offline-googletest-src:
runs-on: ubuntu-latest
@@ -145,14 +145,14 @@ jobs:
-DCMAKE_BUILD_TYPE=Release .
- name: Build
- run: cmake --build build --config "Release" --parallel ${{ env.CORES }}
+ run: cmake --build build --parallel ${{ env.CORES }}
- name: Test
run: |
mkdir -p "build/Testing/Temporary"
cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
export PATH="$PWD/build/src/lib:$PATH"
- ctest --parallel ${{ env.CORES }} --test-dir build -C Debug --output-on-failure
+ ctest --parallel ${{ env.CORES }} --test-dir build --output-on-failure
- name: Check googletest
run: |
@@ -191,14 +191,14 @@ jobs:
-DCMAKE_BUILD_TYPE=Release .
- name: Build
- run: cmake --build build --config "Release" --parallel ${{ env.CORES }}
+ run: cmake --build build --parallel ${{ env.CORES }}
- name: Test
run: |
mkdir -p "build/Testing/Temporary"
cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
export PATH="$PWD/build/src/lib:$PATH"
- ctest --parallel ${{ env.CORES }} --test-dir build -C Debug --output-on-failure
+ ctest --parallel ${{ env.CORES }} --test-dir build --output-on-failure
- name: Check googletest
run: |
@@ -206,6 +206,72 @@ jobs:
[ ! -d "build/src/tests/googletest-build" ]
[ ! -d "build/src/tests/googletest-src" ]
+ cmake-system-sexpp:
+ name: system-sexpp, sexpp shared libs ${{ matrix.sexpp_shared_libs }}, rnp shared libs ${{ matrix.rnp_shared_libs }}
+ runs-on: ubuntu-latest
+ if: "!contains(github.event.head_commit.message, 'skip ci')"
+ timeout-minutes: 30
+ strategy:
+ fail-fast: false
+ matrix:
+ sexpp_shared_libs: [ 'on', 'off' ]
+ rnp_shared_libs: ['on', 'off']
+
+ steps:
+ - name: Install dependencies
+ run: |
+ sudo apt-get -y update
+ sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor
+
+ - name: Checkout sexpp
+ uses: actions/checkout@v3
+ with:
+ repository: rnpgp/sexpp
+ path: sexpp
+
+ - name: Configure sexpp
+ run: |
+ echo CORES="$(nproc --all)" >> $GITHUB_ENV
+ cmake -S sexpp -B sexpp/build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DDOWNLOAD_GTEST=OFF \
+ -DWITH_SEXP_TESTS=OFF \
+ -DBUILD_SHARED_LIBS=${{ matrix.sexpp_shared_libs}}
+
+ - name: Build sexpp
+ run: cmake --build sexpp/build --parallel ${{ env.CORES }}
+
+ - name: Install sexpp
+ run: sudo cmake --install sexpp/build
+
+ - name: Clean sexpp
+ run: rm -rf sexpp
+
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 1
+ submodules: false
+
+ - name: Configure
+ run: |
+ cmake -B build \
+ -DBUILD_SHARED_LIBS=${{ matrix.rnp_shared_libs }} \
+ -DCRYPTO_BACKEND=botan \
+ -DDOWNLOAD_GTEST=ON \
+ -DSYSTEM_LIBSEXPP=ON \
+ -DCMAKE_BUILD_TYPE=Release .
+
+ - name: Build
+ run: cmake --build build --parallel ${{ env.CORES }}
+
+ - name: Test
+ run: |
+ mkdir -p "build/Testing/Temporary"
+ cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
+ export PATH="$PWD/build/src/lib:$PATH"
+ ctest --parallel ${{ env.CORES }} --test-dir build -R rnp_tests --output-on-failure
+
package-source:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"