Skip to content

Commit 1322186

Browse files
author
Fabiana Severin
committed
Fixing build on codebuild
1 parent 3bcd7ea commit 1322186

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build-and-release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ on:
88
branches: [ main ]
99
workflow_dispatch:
1010

11+
permissions:
12+
id-token: write
13+
contents: read
14+
1115
jobs:
1216
build:
13-
runs-on: [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
17+
runs-on: codebuild-project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
1418
timeout-minutes: 15
1519
outputs:
1620
version: ${{ steps.version.outputs.version }}
@@ -30,7 +34,9 @@ jobs:
3034
echo "version=$BASE_VERSION" >> $GITHUB_OUTPUT
3135
3236
- name: Install build dependencies
33-
run: yum install -y cmake make gcc-c++
37+
run: |
38+
apt-get update
39+
apt-get install -y cmake make g++
3440
3541
- name: Clean and build
3642
run: |
@@ -57,7 +63,7 @@ jobs:
5763
retention-days: 30
5864

5965
test:
60-
runs-on: [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
66+
runs-on: codebuild-project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
6167
needs: [build]
6268
strategy:
6369
matrix:
@@ -72,7 +78,7 @@ jobs:
7278
7379
publish:
7480
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/fabisev/artifact-publishing'
75-
runs-on: [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
81+
runs-on: codebuild-project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
7682
needs: [build, test]
7783
permissions:
7884
contents: write

0 commit comments

Comments
 (0)