Skip to content

Commit

Permalink
WIP: update downstream projects
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Wilson <[email protected]>
  • Loading branch information
SWilson4 committed Jul 25, 2024
1 parent a890087 commit 956f6fc
Showing 1 changed file with 55 additions and 63 deletions.
118 changes: 55 additions & 63 deletions .github/workflows/commit-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,82 +6,74 @@ permissions:
on:
push:
branches: [ "main" ]

# ready to go
# - boringssl
# - liboqs-python
# - liboqs-go
# - liboqs-java
# - liboqs-cpp
# - openssh
# - oqs-provider
#
# unsure
# - liboqs-rust (out of sync with main)
# - liboqs-dotnet (is this supported?)
# - oqs-demos (should this be triggered by liboqs?)
# - ci-containers (probably not necessary?)
#
# not necessary
# - liboqs (this project)
# - openssl (deprecated)
# - www (no CI)
# - tsc (no CI)
# - profiling (deprecated)
# - oqs-engine (deprecated)
# - libssh (inactive)
jobs:
trigger-downstream-ci:
trigger-downstream-github-ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
runs-on: ubuntu-latest
matrix:
subproject:
- liboqs-cpp
- liboqs-go
- liboqs-python
steps:
# TODO: missing projects?
- name: Trigger OQS-OpenSSL CI
- name: Trigger ${{ matrix.subproject }} CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.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
--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-upstream-trigger"}' \
https://api.github.com/repos/open-quantum-safe/${{ matrix.subproject }}/dispatches | tee curl_out \
&& grep -q "204" curl_out
trigger-downstream-circleci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- subproject: boringssl
branch: master
- subproject: liboqs-java
branch: master
- subproject: openssh
branch: OQS-v8
- subproject: oqs-provider
branch: main
steps:
- name: Trigger ${{ matrix.subproject }} CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.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 \
https://circleci.com/api/v2/project/gh/open-quantum-safe/${{ matrix.subproject }}/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger OQS-OpenSSH CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.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 ${{ secrets.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 ${{ secrets.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 ${{ secrets.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 ${{ secrets.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

0 comments on commit 956f6fc

Please sign in to comment.