Skip to content

Commit

Permalink
ci: Fix OpenSSL path, add repository_dispatch trigger
Browse files Browse the repository at this point in the history
Add a repository_dispatch trigger to CI.

Additionally build against latest liboqs commit in CI.

Fix path to OpenSSL for macos-latest in GitHub Actions.

Signed-off-by: Spencer Wilson <[email protected]>
  • Loading branch information
SWilson4 committed Dec 16, 2024
1 parent 07e5690 commit e84ecc3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request, merge_group]
on: [push, pull_request, merge_group, repository_dispatch]

name: Continuous integration

Expand All @@ -15,6 +15,9 @@ jobs:
- stable
- beta
- nightly
liboqs:
- pin
- main
env:
# 20 MiB stack
RUST_MIN_STACK: 20971520
Expand All @@ -24,6 +27,10 @@ jobs:
with:
submodules: true

- name: Update liboqs to latest main
if: matrix.liboqs == 'main'
run: git submodule update --remote

- name: Set stack size
if: startsWith(matrix.os, 'windows')
run: echo "RUSTFLAGS=-C link-arg=/STACK:20971520" >> $env:GITHUB_ENV
Expand All @@ -45,7 +52,7 @@ jobs:

- name: Set OPENSSL_ROOT_DIR
if: startsWith(matrix.os, 'macos')
run: echo "OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1" >> $GITHUB_ENV
run: echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl)" >> $GITHUB_ENV

- name: Install Rust
run: |
Expand Down

0 comments on commit e84ecc3

Please sign in to comment.