forked from open-quantum-safe/liboqs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from CircleCI to GitHub Actions (open-quantum-safe#1849)
Duplicate jobs from the CircleCI workflow as closely as possible in GitHub Actions. Remove Ubuntu Bionic / i386 support in CI. --------- Signed-off-by: Spencer Wilson <[email protected]> Signed-off-by: rtjk <[email protected]>
- Loading branch information
Showing
6 changed files
with
126 additions
and
329 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Trigger basic downstream CI | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
trigger-downstream-ci: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
# TODO: missing projects? | ||
- name: Trigger OQS-OpenSSL CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "OQS-OpenSSL_1_1_1-stable", "parameters": { "run_downstream_tests": true } }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/openssl/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger OQS-BoringSSL CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "master", "parameters": { "run_downstream_tests": true } }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/boringssl/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger OQS-OpenSSH CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "OQS-v8", "parameters": { "run_downstream_tests": true } }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/openssh/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger oqs-provider CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "main" }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/oqs-provider/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger liboqs-dotnet CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "master" }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-dotnet/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger liboqs-java CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--user ${BUILD_TRIGGER_TOKEN}: \ | ||
--request POST \ | ||
--header "Content-Type: application/json" \ | ||
--data '{ "branch": "master" }' \ | ||
https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-java/pipeline | tee curl_out \ | ||
&& grep -q "201" curl_out | ||
- name: Trigger liboqs-python CI | ||
run: | | ||
curl --silent \ | ||
--write-out "\n%{response_code}\n" \ | ||
--request POST \ | ||
--header "Accept: application/vnd.github+json" \ | ||
--header "Authorization: Bearer $OQSBOT_GITHUB_ACTIONS" \ | ||
--header "X-GitHub-Api-Version: 2022-11-28" \ | ||
--data '{"event_type":"liboqs-upstream-trigger"}' \ | ||
https://api.github.com/repos/open-quantum-safe/liboqs-python/dispatches | tee curl_out \ | ||
&& grep -q "204" curl_out |
Oops, something went wrong.