Skip to content

Commit

Permalink
Trigger downstream action in oqs-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Feb 1, 2024
1 parent c2bba8e commit dae14ab
Showing 1 changed file with 21 additions and 29 deletions.
50 changes: 21 additions & 29 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
name: Release tests

on: pull_request
on:
release:
types: [published]

jobs:
oqs-provider-release-test: # TODO: this is highly coupled to oqs-provider structure. Might be better downstream?
if: startsWith(github.head_ref, 'sw-provider-') # TODO: settle on standard prefix
container:
image: openquantumsafe/ci-ubuntu-jammy:latest
# trigger oqs-provider release tests on a tracker branch
oqs-provider-release-test:
runs-on: ubuntu-latest
steps:
- name: Checkout oqs-provider
uses: actions/checkout@v4
with:
repository: open-quantum-safe/oqs-provider
- name: Checkout liboqs
uses: actions/checkout@v4
with:
path: liboqs
- name: Activate all algorithms
env:
LIBOQS_SRC_DIR: liboqs
- name: Trigger oqs-provider release tests
run: |
sed -i "s/enable\: false/enable\: true/g" oqs-template/generate.yml && \
python3 oqs-template/generate.py
- name: Full build of oqs-provider
env:
OPENSSL_BRANCH: master # TODO: verify that this is the correct branch
run: scripts/fullbuild.sh
- name: Run basic tests for oqs-provider
run: scripts/runtests.sh
- name: Test all TLS KEM/signature algorithm combinations
env:
OPENSSL_MODULES: _build/lib
OPENSSL_CONF: scripts/openssl-ca.cnf
run: python3 -m pytest --numprocesses=auto scripts/test_tls_full.py
curl --silent \
--write-out "\n%{response_code}\n" \
--request POST \
--header "Accept: application/vnd.github+json" \
--header "Authorization: Bearer ${{ secrets.OQSBOT_GITHUB_ACTIONS }}" \
--header "X-GitHub-Api-Version: 2022-11-28" \
--data '{ \
"event_type": "liboqs-release", \
"client_payload": { \
"liboqs_ref": "tags/${{ github.event.release.tag_name }}", \
"provider_ref": "heads/${{ github.event.release.tag_name }}-tracker" \
} \
}' \
https://api.github.com/repos/open-quantum-safe/oqs-provider/dispatches | tee curl_out \
&& grep -q "204" curl_out

0 comments on commit dae14ab

Please sign in to comment.