Github CI: Add a job for out-of-source build + install
authorRichard Levitte <levitte@openssl.org>
Sat, 23 Jan 2021 10:57:08 +0000 (11:57 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 25 Jan 2021 12:38:38 +0000 (13:38 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13935)

.github/workflows/ci.yml

index fc4549fd57332e4fc20fccfbecba170f916b44d2..9e99a9b97b51f9445ae46b90309072326fa847ae 100644 (file)
@@ -123,3 +123,24 @@ jobs:
       run: make -s -j4
     - name: make test
       run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+
+  out-of-source-and-install:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: extra preparations
+      run: |
+        mkdir ./build
+        mkdir ./install
+    - name: config
+      run: ../config --strict-warnings --prefix=$(cd ../install; pwd) && perl configdata.pm --dump
+      working-directory: ./build
+    - name: make
+      run: make -s -j4
+      working-directory: ./build
+    - name: make test
+      run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+      working-directory: ./build
+    - name: make install
+      run: make install
+      working-directory: ./build