Skip to content

Commit

Permalink
Run on GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Nov 3, 2023
1 parent 435df5c commit 2338fa0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 44 deletions.
26 changes: 1 addition & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,6 @@ jobs:
--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
macro-check:
machine:
image: ubuntu-2004:202101-01
resource_class: arm.medium
steps:
- checkout
# It seems the machine doesn't contain all preprequisites, and we don't have permission to add them explicitly,
# so we can only run in a prepared ARM64 CI image
- run:
name: Print defined ARM macros
no_output_timeout: 1h
command: gcc macros.c -o macros && ./macros
workflows:
version: 2.1
Expand All @@ -327,8 +315,6 @@ workflows:
and:
- not:
equal: [ main, << pipeline.git.branch >> ]
- not:
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
- not:
matches: { pattern: "^ghactionsonly-.*", value: << pipeline.git.branch >> }
jobs:
Expand Down Expand Up @@ -411,17 +397,7 @@ workflows:

commit-to-main:
when:
and:
- not:
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
- equal: [ main, << pipeline.git.branch >> ]
equal: [ main, << pipeline.git.branch >> ]
jobs:
- trigger-downstream-ci:
context: openquantumsafe

nistkat:
when:
and:
- equal: [ sw-full-kat, << pipeline.git.branch >> ]
jobs:
- macro-check
27 changes: 27 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,30 @@ jobs:
timeout-minutes: 360
run: mkdir -p tmp && SKIP_ALGS='${{ matrix.SKIP_ALGS }}' python3 -m pytest --verbose ${{ matrix.PYTEST_ARGS }}

nistkat-x64:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: generic
container: openquantumsafe/ci-ubuntu-focal-x86_64:latest
CMAKE_ARGS: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=generic
PYTEST_ARGS: --numprocesses=auto -k 'test_kat_all'
- name: extensions
container: openquantumsafe/ci-ubuntu-focal-x86_64:latest
CMAKE_ARGS: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=haswell
PYTEST_ARGS: --numprocesses=auto -k 'test_kat_all'
container:
image: ${{ matrix.container }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
run: mkdir build && cd build && cmake -GNinja ${{ matrix.CMAKE_ARGS }} .. && cmake -LA ..
- name: Build
run: ninja
working-directory: build
- name: Run tests
timeout-minutes: 360
run: mkdir -p tmp && SKIP_ALGS='${{ matrix.SKIP_ALGS }}' python3 -m pytest --verbose ${{ matrix.PYTEST_ARGS }}
19 changes: 0 additions & 19 deletions macros.c

This file was deleted.

0 comments on commit 2338fa0

Please sign in to comment.