Skip to content

Commit

Permalink
Fix EC2 CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Sep 11, 2024
1 parent f08f335 commit dc668f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_ec2_any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
ec2_instance_type: ${{ github.event.inputs.ec2_instance_type }}
ec2_ami_id: ${{ github.event.inputs.ec2_ami_id }}
cflags: ${{ github.event.inputs.cflags }}
crosss-prefix: ${{ github.event.inputs.cross-prefix }}
cross-prefix: ${{ github.event.inputs.cross-prefix }}
functest: ${{ github.event.inputs.functest }}
lint: ${{ github.event.inputs.lint }}
cbmc: ${{ github.event.inputs.cbmc }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci_ec2_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ on:
description: Indicates if instance should always be terminated, even on failure
default: 'true'
functest:
type: boolean
type: string
default: 'true'
lint:
type: boolean
type: string
default: 'true'
cbmc:
type: boolean
type: string
default: 'false'
env:
AWS_ROLE: arn:aws:iam::559050233797:role/mlkem-c-aarch64-gh-action
Expand Down Expand Up @@ -114,8 +114,10 @@ jobs:
id-token: 'write'
needs:
- start-ec2-runner
- bench # required to wait when the main job is done
runs-on: ubuntu-latestn
- cbmc
- lint
- functest
runs-on: ubuntu-latest
if: ${{ (inputs.always_terminate == 'true' && always()) || success() }} # required to stop the runner even if the error happened in the previous jobs
steps:
- name: Configure AWS credentials
Expand Down

0 comments on commit dc668f4

Please sign in to comment.