forked from aws/aws-lambda-runtime-interface-emulator
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (42 loc) · 1008 Bytes
/
build.yml
File metadata and controls
51 lines (42 loc) · 1008 Bytes
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
47
48
49
50
51
name: Build
on:
push:
branches: [ localstack ]
tags: v*.*
pull_request:
branches: [ localstack ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Run tests
run: make tests-with-docker
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Build
env:
RELEASE_BUILD_LINKER_FLAGS: "-s -w"
run: make compile-lambda-linux-all
- uses: actions/upload-artifact@v4
with:
name: aws-lambda-rie
path: bin/*
- name: Release binaries
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
generate_release_notes: true
prerelease: ${{ endsWith(github.ref, '-pre') }}