Skip to content

Commit

Permalink
wip: ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
akash1810 committed Mar 27, 2024
1 parent cdd0348 commit ca2f46e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'
architecture: 'x64'

- uses: guardian/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14457,6 +14457,9 @@ spec:
"GithubActionsUsageServiceRole782ABC41",
],
"Properties": {
"Architectures": [
"arm64",
],
"Code": {
"S3Bucket": {
"Ref": "DistributionBucketName",
Expand Down
3 changes: 2 additions & 1 deletion packages/cdk/lib/github-actions-usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IVpc } from 'aws-cdk-lib/aws-ec2';
import { ScheduledFargateTask } from 'aws-cdk-lib/aws-ecs-patterns';
import { Rule } from 'aws-cdk-lib/aws-events';
import { LambdaFunction } from 'aws-cdk-lib/aws-events-targets';
import { Runtime } from 'aws-cdk-lib/aws-lambda';
import { Architecture, Runtime } from 'aws-cdk-lib/aws-lambda';
import type { DatabaseInstance } from 'aws-cdk-lib/aws-rds';

interface GithubActionsUsageProps {
Expand All @@ -26,6 +26,7 @@ export function addGithubActionsUsageLambda(
const lambda = new GuLambdaFunction(scope, 'GithubActionsUsage', {
app,
vpc,
architecture: Architecture.ARM_64,
securityGroups: [dbAccess],
fileName: `${app}.zip`,
handler: 'index.main',
Expand Down
2 changes: 1 addition & 1 deletion packages/common/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["views"]
binaryTargets = ["native", "rhel-openssl-3.0.x"]
binaryTargets = ["native", "linux-arm64-openssl-3.0.x"]
}

datasource db {
Expand Down

0 comments on commit ca2f46e

Please sign in to comment.