-
Notifications
You must be signed in to change notification settings - Fork 2
116 lines (90 loc) · 2.89 KB
/
ffmpeg.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: FFmpeg library
on:
push:
branches: [ master ]
paths:
- '.github/workflows/ffmpeg.yml'
- 'internal/builder/**'
permissions:
pull-requests: write
contents: write
jobs:
linux_amd64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: uname -a
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Install deps
run: sudo apt-get install -y yasm nasm meson gperf
- run: mkdir build
- name: Build
working-directory: build
run: go run ../internal/builder/ ../libffmpeg_linux_amd64.a
- run: ls -la
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[CI] Rebuild linux amd64 library"
body: Automated changes by CI pipeline.
commit-message: "[CI] Rebuild linux amd64 library"
committer: GitHub CI <noreply@github.com>
author: GitHub CI <noreply@github.com>
branch: ci/linux-amd64
add-paths: libffmpeg_linux_amd64.a
darwin_amd64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: uname -a
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Install deps
run: brew install yasm autoconf ragel meson nasm automake
- run: mkdir build
- name: Build
working-directory: build
run: go run ../internal/builder/ ../libffmpeg_darwin_amd64.a
- run: ls -la
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[CI] Rebuild darwin amd64 library"
body: Automated changes by CI pipeline.
commit-message: "[CI] Rebuild darwin amd64 library"
committer: GitHub CI <noreply@github.com>
author: GitHub CI <noreply@github.com>
branch: ci/darwin-amd64
add-paths: libffmpeg_darwin_amd64.a
darwin_arm64:
runs-on: macos-13-arm64
if: ${{ false }} # Not available in public runners
steps:
- uses: actions/checkout@v4
- run: uname -a
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Install deps
run: brew install yasm
- run: mkdir build
- name: Build
working-directory: build
run: go run ../internal/builder/ ../libffmpeg_darwin_arm64.a
- run: ls -la
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[CI] Rebuild darwin arm64 library"
body: Automated changes by CI pipeline.
commit-message: "[CI] Rebuild darwin arm64 library"
committer: GitHub CI <noreply@github.com>
author: GitHub CI <noreply@github.com>
branch: ci/darwin-arm64
add-paths: libffmpeg_darwin_arm64.a