diff options
author | Neil Horman <nhorman@openssl.org> | 2023-12-19 06:15:39 -0500 |
---|---|---|
committer | Neil Horman <nhorman@openssl.org> | 2024-01-05 13:06:33 -0500 |
commit | 39ea3155be08b5f3d5ef25d10c63bd5404efd094 (patch) | |
tree | e5ea256c21e32fcc9573926e8be8c743dd59f5ac /.github/workflows | |
parent | 64cf949d228979547726d6fbd0cdd71dadba84d0 (diff) |
Update workflow to use GITHUB_WORKSPACE
It was pointed out the GITHUB_WORKSPACE points to the container path of
the workspace, so we can use it instead of hardcoding the
__w/openssl/openssl path
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22726)
(cherry picked from commit 638ad52ae53ece2e870984430493e454f75d048a)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/interop-tests.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/interop-tests.yml b/.github/workflows/interop-tests.yml index 952e1b7d2d..d6a17f6790 100644 --- a/.github/workflows/interop-tests.yml +++ b/.github/workflows/interop-tests.yml @@ -22,19 +22,21 @@ jobs: COMPONENT: ${{ matrix.COMPONENT }} steps: - uses: actions/checkout@v4 + - name: Display environment + run: export - name : Install needed tools run: | dnf -y install perl gcc rpmdevtools dnf-utils make tmt-all beakerlib \ fips-mode-setup crypto-policies-scripts - name: install interop tests run: | - cd /__w/openssl/openssl + cd ${GITHUB_WORKSPACE} git clone --branch=openssl --depth=1 https://gitlab.com/redhat-crypto/tests/interop.git - name: build openssl as an rpm run: | mkdir -p /build/SPECS && cd /build && echo -e "%_topdir /build\n%_lto_cflags %{nil}" >~/.rpmmacros && rpmdev-setuptree - cd /build && cp /__w/openssl/openssl/interop/openssl.spec SPECS/ && \ - cd SPECS/ && source /__w/openssl/openssl/VERSION.dat && \ + cd /build && cp ${GITHUB_WORKSPACE}/interop/openssl.spec SPECS/ && \ + cd SPECS/ && source ${GITHUB_WORKSPACE}/VERSION.dat && \ sed -i "s/^Version: .*\$/Version: $MAJOR.$MINOR.$PATCH/" openssl.spec && \ sed -i 's/^Release: .*$/Release: dev/' openssl.spec yum-builddep -y /build/SPECS/openssl.spec # just for sure nothing is missing |