Skip to content

Commit

Permalink
Move reusable workflows into subdirectory
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
  • Loading branch information
hanno-becker committed Sep 10, 2024
1 parent d6ccc55 commit e984d43
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 430 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
archflags: "-mcpu=cortex-a55 -march=armv8.2-a"
cflags: "-static -DFORCE_AARCH64"
bench_extra_args: -w exec-on-a55
uses: ./.github/workflows/bench_core_reusable.yml
uses: ./.github/workflows/reusable/bench_core_reusable.yml
with:
runner: self-hosted-${{ matrix.target.system }}
name: ${{ matrix.target.name }}
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/bench_core_reusable.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/bench_ec2_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
contents: 'read'
id-token: 'write'
uses: ./.github/workflows/bench_ec2_reusable.yml
uses: ./.github/workflows/reusable/bench_ec2_reusable.yml
if: github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main')
with:
ec2_instance_type: t4g.small
Expand All @@ -27,7 +27,7 @@ jobs:
permissions:
contents: 'read'
id-token: 'write'
uses: ./.github/workflows/bench_ec2_reusable.yml
uses: ./.github/workflows/reusable/bench_ec2_reusable.yml
if: github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main')
with:
ec2_instance_type: c7g.medium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench_ec2_any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
jobs:
bench-ec2-any:
name: Ad-hoc benchmark on $${{ github.event.inputs.ec2_instance_type }}
uses: ./.github/workflows/bench_ec2_reusable.yml
uses: ./.github/workflows/reusable/bench_ec2_reusable.yml
with:
ec2_instance_type: ${{ github.event.inputs.ec2_instance_type }}
ec2_ami_id: ${{ github.event.inputs.ec2_ami_id }}
Expand Down
108 changes: 0 additions & 108 deletions .github/workflows/bench_ec2_reusable.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/cbmc_core_reusable.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- runner: 'pqcp-arm64'
name: 'ubuntu-latest (aarch64)'
name: Functional tests (${{ matrix.target.name }})
uses: ./.github/workflows/functest_core_reusable.yml
uses: ./.github/workflows/reusable/functest_core_reusable.yml
with:
runner: ${{ matrix.target.runner }}
cflags: ${{ matrix.target.cflags }}
Expand All @@ -44,15 +44,15 @@ jobs:
strategy:
matrix:
system: [ubuntu-latest]
uses: ./.github/workflows/lint_core_reusable.yml
uses: ./.github/workflows/reusable/lint_core_reusable.yml
with:
runner: ${{ matrix.system }}
cross-prefix: "aarch64-unknown-linux-gnu-"
cbmc:
strategy:
matrix:
system: [macos-latest]
uses: ./.github/workflows/cbmc_core_reusable.yml
uses: ./.github/workflows/reusable/cbmc_core_reusable.yml
with:
runner: ${{ matrix.system }}
cross-prefix: "aarch64-unknown-linux-gnu-"
2 changes: 1 addition & 1 deletion .github/workflows/ci_ec2_any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
jobs:
ci-ec2-any:
name: Ad-hoc CI on $${{ github.event.inputs.ec2_instance_type }}
uses: ./.github/workflows/ci_ec2_reusable.yml
uses: ./.github/workflows/reusable/ci_ec2_reusable.yml
with:
ec2_instance_type: ${{ github.event.inputs.ec2_instance_type }}
ec2_ami_id: ${{ github.event.inputs.ec2_ami_id }}
Expand Down
Loading

0 comments on commit e984d43

Please sign in to comment.