Skip to content

Commit

Permalink
Split workflows for basic build+test and CBMC, add pqcp-arm64 runner
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Jun 6, 2024
1 parent e23c7c6 commit 4c2f1e2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# SPDX-License-Identifier: Apache-2.0

name: Build
name: Basic
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
jobs:
build_test:
runs-on: macos-latest
build_lint_kat:
strategy:
matrix:
system: [macos-latest, pqcp-arm64]
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v4
- name: install native dependencies
run: brew install litani cbmc cbmc-viewer
- name: Setup nix
uses: ./.github/actions/setup-nix
with:
script: |
cat >> $GITHUB_STEP_SUMMARY << EOF
## Setup
Architecture: $(uname -m)
- $(uname -a)
- $(nix --version)
- $(astyle --version)
- $(cbmc --version)
- $(litani --version)
- $(cadical --version)
- $(${{ matrix.cross_prefix }}gcc --version | grep -m1 "")
- $(bash --version | grep -m1 "")
EOF
Expand Down Expand Up @@ -60,10 +59,3 @@ jobs:
$(checksum ./test/gen_NISTKAT768 21b4a1e1ea34a13c26a9da5eeb9325afb5ca11596ca6f3704c3f2637e3ea7524)
$(checksum ./test/gen_NISTKAT1024 6471398b0a728ee1ef39e93bb89b526fbf59587a3662edadbcfc6c88a512cd71)
EOF
- name: Run CBMC proofs
shell: nix develop .#ci -c bash -e {0}
run: |
cd cbmc/proofs;
KYBER_K=2 ./run-cbmc-proofs.py --summarize;
KYBER_K=3 ./run-cbmc-proofs.py --summarize;
KYBER_K=4 ./run-cbmc-proofs.py --summarize;
36 changes: 36 additions & 0 deletions .github/workflows/cbmc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: Apache-2.0

name: CBMC
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
jobs:
cbmc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install native dependencies
run: brew install litani cbmc cbmc-viewer
- name: Setup nix
uses: ./.github/actions/setup-nix
with:
script: |
cat >> $GITHUB_STEP_SUMMARY << EOF
## Setup
Architecture: $(uname -m)
- $(nix --version)
- $(cbmc --version)
- $(litani --version)
- $(cadical --version)
- $(${{ matrix.cross_prefix }}gcc --version | grep -m1 "")
- $(bash --version | grep -m1 "")
EOF
- name: Run CBMC proofs
shell: nix develop .#ci -c bash -e {0}
run: |
cd cbmc/proofs;
KYBER_K=2 ./run-cbmc-proofs.py --summarize;
KYBER_K=3 ./run-cbmc-proofs.py --summarize;
KYBER_K=4 ./run-cbmc-proofs.py --summarize;

0 comments on commit 4c2f1e2

Please sign in to comment.