-
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 d417d13
Showing
14 changed files
with
214 additions
and
243 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
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 linter | ||
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Bench EC2 | ||
on: | ||
workflow_dispatch: | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: bench-ec2-any | ||
on: | ||
workflow_dispatch: | ||
|
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
Oops, something went wrong.