generated from MichaelAGolden/ffmpeg-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.5 KB
/
build-amd64.yml
File metadata and controls
46 lines (38 loc) · 1.5 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: ffmpeg-amd64
on:
workflow_dispatch:
# manual trigger
jobs:
build:
runs-on: ubuntu-latest
env:
TIMESTAMP: ${{ github.run_id }}_${{ github.run_number }}
ARCH: amd64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set file permissions
run: |
chmod +x configs/ffmpeg-for-lambda/build.sh
chmod +x configs/ffmpeg-for-lambda/amd64/build.sh
- name: Build FFmpeg for AMD64
run: |
cd configs/ffmpeg-for-lambda/
./build.sh --amd64-only --timestamp ${TIMESTAMP}
- name: List artifact directories
run: |
echo "Checking for build artifacts..."
echo "Working directory: $(pwd)"
ls -la configs/ffmpeg-for-lambda/build/ || echo "configs/ffmpeg-for-lambda/build/ directory not found"
ls -la configs/ffmpeg-for-lambda/build/archive/ || echo "configs/ffmpeg-for-lambda/build/archive/ directory not found"
ls -la configs/ffmpeg-for-lambda/build/archive/$TIMESTAMP/ || echo "configs/ffmpeg-for-lambda/build/archive/$TIMESTAMP/ directory not found"
find configs/ffmpeg-for-lambda/ -name "*.zip" -type f
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ffmpeg-amd64-build
path: configs/ffmpeg-for-lambda/build/archive/${{ env.TIMESTAMP }}
retention-days: 7
if-no-files-found: warn