Skip to content

Commit 0da48a4

Browse files
authored
Merge pull request #168 from aligent/feature/DO-2031_support_cdk_arm64_build
Feature/do 2031 support cdk arm64 build
2 parents 5365dae + 14c4d75 commit 0da48a4

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/aws-cdk.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ on:
7272
type: boolean
7373
required: false
7474
default: false
75+
runs-on:
76+
description: "GitHub runner to use (e.g. ubuntu-latest, ubuntu-24.04-arm for ARM64 builds)"
77+
type: string
78+
required: false
79+
default: "ubuntu-latest"
7580

7681
# Custom CDK Commands
7782
bootstrap-command:
@@ -106,7 +111,7 @@ on:
106111
jobs:
107112
prepare:
108113
name: 🔍 Prepare CDK Deployment
109-
runs-on: ubuntu-latest
114+
runs-on: ${{ inputs.runs-on }}
110115
environment: ${{ inputs.github-environment }}
111116
outputs:
112117
node-version: ${{ steps.node-version.outputs.version }}
@@ -407,7 +412,7 @@ jobs:
407412

408413
cdk:
409414
name: ☁️ CDK Operations
410-
runs-on: ubuntu-latest
415+
runs-on: ${{ inputs.runs-on }}
411416
needs: [prepare]
412417
permissions:
413418
id-token: write

docs/aws-cdk.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ A streamlined AWS CDK workflow supporting multi-environment infrastructure synth
1010
- **PR diff comments**: When running a diff on a pull request, the result is posted (or updated) as a PR comment
1111
- **Smart Node.js setup**: Automatic detection from .nvmrc file with dependency caching
1212
- **Package manager detection**: Automatic support for npm, yarn (classic/berry), and pnpm
13+
- **Cross-platform Docker builds**: ARM64 container support via native ARM runners
1314
- **Debug support**: Verbose logging and debug output for troubleshooting
1415
- **GitHub Environments support**: Credentials and stack names can be configured per-environment via GitHub Environment variables/secrets
1516

@@ -32,6 +33,7 @@ A streamlined AWS CDK workflow supporting multi-environment infrastructure synth
3233
| extra-arguments || string | | Extra arguments as string |
3334
| debug || boolean | false | Enable verbose logging and debug output |
3435
| lfs || boolean | false | Enable Git LFS support for checkout |
36+
| runs-on || string | ubuntu-latest | GitHub runner (use `ubuntu-24.04-arm` for native ARM64 builds) |
3537
| **Custom CDK Commands** |
3638
| bootstrap-command || string | npx cdk bootstrap | Custom bootstrap command |
3739
| synth-command || string | npx cdk synth | Custom synth command |

0 commit comments

Comments
 (0)