-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger downstream action in oqs-provider
- Loading branch information
Showing
1 changed file
with
21 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |