-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move reusable workflows into actions
Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
8fc58e3
commit 2258e1e
Showing
13 changed files
with
273 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Functional tests | ||
description: Run functional tests for MLKEM-C_AArch64 | ||
|
||
inputs: | ||
cflags: | ||
description: CFLAGS to pass to compilation | ||
default: '' | ||
cross-prefix: | ||
description: Binary prefix for cross compilation | ||
default: '' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run functional tests | ||
id: func_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests func --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run KAT tests | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
id: kat_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests kat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run Nistkat tests | ||
id: nistkat_test | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
|| steps.kat_test.conclusion == 'failure' | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests nistkat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Lint | ||
description: Lint MLKEM-C_AArch64 | ||
|
||
inputs: | ||
use_nix: | ||
description: Whether to run in the default Nix environment | ||
default: true | ||
custom_shell: | ||
description: The shell to use. Only relevant if use_nix is 'false' | ||
default: 'bash' | ||
cross-prefix: | ||
description: Binary prefix for cross compilation | ||
default: '' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup nix | ||
if: ${{ inputs.use_nix }} | ||
uses: ./.github/actions/setup-nix | ||
with: | ||
devShell: ci-linter | ||
script: | | ||
cat >> $GITHUB_STEP_SUMMARY << EOF | ||
## Setup | ||
Architecture: $(uname -m) | ||
- $(uname -a) | ||
- $(nix --version) | ||
- $(astyle --version) | ||
- $(${{ matrix.target.cross-prefix }}gcc --version | grep -m1 "") | ||
- $(bash --version | grep -m1 "") | ||
EOF | ||
- name: Set shell | ||
shell: bash | ||
run: echo SHELL="${{ inputs.use_nix && 'nix develop .#ci-linter -c bash -e {0}' || 'inputs.custom_shell }}" >> $GITHUB_ENV | ||
- name: Run CBMC proofs | ||
shell: ${{ env.SHELL }} | ||
run: | | ||
echo "## Lint & Checks" >> $GITHUB_STEP_SUMMARY | ||
lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Functional tests | ||
description: Run functional tests for MLKEM-C_AArch64 | ||
|
||
inputs: | ||
cflags: | ||
description: CFLAGS to pass to compilation | ||
default: '' | ||
cross-prefix: | ||
description: Binary prefix for cross compilation | ||
default: '' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run functional tests | ||
id: func_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests func --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run KAT tests | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
id: kat_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests kat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run Nistkat tests | ||
id: nistkat_test | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
|| steps.kat_test.conclusion == 'failure' | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests nistkat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.