Skip to content

Commit

Permalink
Cross Compiles CI: Run evp tests on pull requests
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #22750)

(cherry picked from commit 0414f89)
  • Loading branch information
t8m committed Nov 23, 2023
1 parent f831adc commit fb1877c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cross-compiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ jobs:
run: make -s -j4

- name: install qemu
if: github.event_name == 'push' && matrix.platform.tests != 'none'
if: matrix.platform.tests != 'none'
run: sudo apt-get -yq --force-yes install qemu-user

- name: Set QEMU environment
if: github.event_name == 'push' && matrix.platform.qemucpu != ''
if: matrix.platform.qemucpu != ''
run: echo "QEMU_CPU=${{ matrix.platform.qemucpu }}" >> $GITHUB_ENV

- name: Set OpenSSL caps environment
if: github.event_name == 'push' && matrix.platform.opensslcapsname != ''
if: matrix.platform.opensslcapsname != ''
run: echo "OPENSSL_${{ matrix.platform.opensslcapsname }}=\
${{ matrix.platform.opensslcaps }}" >> $GITHUB_ENV

Expand All @@ -210,3 +210,9 @@ jobs:
make test HARNESS_JOBS=${HARNESS_JOBS:-4} \
TESTS="${{ matrix.platform.tests }} -test_afalg" \
QEMU_LD_PREFIX=/usr/${{ matrix.platform.arch }}
- name: make evp tests
if: github.event_name == 'pull_request' && matrix.platform.tests != 'none'
run: |
make test HARNESS_JOBS=${HARNESS_JOBS:-4} \
TESTS="test_evp*" \
QEMU_LD_PREFIX=/usr/${{ matrix.platform.arch }}

0 comments on commit fb1877c

Please sign in to comment.