-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (45 loc) · 1.23 KB
/
build-lambda-function.yml
File metadata and controls
46 lines (45 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Lambda function
on: workflow_dispatch
jobs:
tsc:
name: Compile TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Compile TypeScript
run: scripts/build-lambda-grader.sh
- uses: actions/upload-artifact@v3
with:
name: build-lambda
path: build.tar.bz2
if-no-files-found: error
native:
name: Build native modules
needs: tsc
runs-on: ubuntu-latest
container: amazon/aws-lambda-nodejs:22
steps:
- name: install git and tar
run: yum install -y git tar bzip2 zip
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: build-lambda
- name: Rebuild native modules
run: scripts/build-lambda-grader-in-docker.sh
- uses: actions/upload-artifact@v3
with:
name: graderzip
path: grader.zip
if-no-files-found: error
- uses: geekyeggo/delete-artifact@v2
with:
failOnError: false
name: build-lambda