summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2023-11-28 15:55:43 +0100
committerRichard Levitte <levitte@openssl.org>2023-12-08 08:59:42 +0100
commit9628a455a1a703841d98d101a582af4477b9d70d (patch)
tree406b0754f565b11c31c16437752a44d471d6705e
parentf00c5a6076d79855112bddfcf7651ce3d4f8a6eb (diff)
Modify 'out-of-source-and-install' to work with a read-only source tree
Fixes #22907 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22934) (cherry picked from commit d48db01f06afbc0557ad04548d07cb16eecaa3e4)
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ad9fb4d1e8..b9185fc4e9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -251,19 +251,30 @@ jobs:
- name: make test
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
- out-of-source-and-install:
+ # out-of-source-and-install checks multiple things at the same time:
+ # - That building, testing and installing works from an out-of-source
+ # build tree
+ # - That building, testing and installing works with a read-only source
+ # tree
+ out-of-readonly-source-and-install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- - name: extra preparations
+ with:
+ path: ./source
+ - name: make source read-only
+ run: chmod -R a-w ./source
+ - name: create build and install directories
run: |
mkdir ./build
mkdir ./install
- name: config
- run: ../config --banner=Configured enable-fips enable-acvp-tests --strict-warnings --prefix=$(cd ../install; pwd) && perl configdata.pm --dump
+ run: |
+ ../source/config --banner=Configured enable-fips enable-acvp-tests --strict-warnings --prefix=$(cd ../install; pwd)
+ perl configdata.pm --dump
working-directory: ./build
- name: make
run: make -s -j4