-
Notifications
You must be signed in to change notification settings - Fork 51
32 lines (26 loc) · 934 Bytes
/
build_layer.yml
File metadata and controls
32 lines (26 loc) · 934 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
name: build_layers
on:
push:
branches:
- "main"
- "florentinl/APPSEC-58224/block-requests"
pull_request:
jobs:
build:
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
strategy:
matrix:
arch: [arm64, amd64]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}
run: |
echo "Building layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}"
ARCH=${{ matrix.arch }} PYTHON_VERSION=${{ matrix.python_version }} ./scripts/build_layers.sh
- name: Upload layer artifact
uses: actions/upload-artifact@v4
with:
path: .layers/*.zip
name: datadog-lambda-python-${{ matrix.python_version }}-${{ matrix.arch }}