-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move from CircleCI to GitHub Actions #1849
Changes from all commits
299cc31
0ad44ed
13920ad
eeba8ac
ff6dc01
a2159f0
5b4c6e3
8c87f88
9e99faa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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 } }' \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When to add/change this to v9? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The v9 branch doesn't yet work; the current PR from @geedo0 gets the basic test suite running but still doesn't have full PQ or hybrid support. I think we can merge this PR with v8, and then when v9 is ready, we can come back and update the liboqs CI. |
||
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 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't look as necessary as triggering liboqs-rust, does it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or liboqs-go... My intent with this PR was just to duplicate existing CCI functionality as closely as possible to make sure it worked on GH and make any improvements in a follow-up PR. But I could do both in one shot, if that would be preferable from a review standpoint. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
&& 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look necessary to keep this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as below re liboqs-rust applies here.