-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.45 KB
/
auto-mac.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
name: auto-mac
on: [workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- uses: melusina-org/[email protected]
- name: prepare
run: |
sudo port install mingw-w64 nasm coreutils
git clone https://github.com/FFmpeg/FFmpeg ffmpeg
git clone https://code.videolan.org/videolan/x264.git
- name: build
run: |
cd x264
./configure --disable-cli --enable-static --cross-prefix=x86_64-w64-mingw32- --host=mingw64
sudo make -j`nproc` install
cd ..
cd ffmpeg
./configure \
--disable-autodetect \
--enable-static --disable-shared --disable-ffplay --disable-ffprobe --disable-doc --disable-debug \
--enable-w32threads \
--pkg-config=pkg-config \
--arch=x86_64 --target-os=mingw64 \
--prefix=$GITHUB_WORKSPACE \
--enable-gpl --enable-libx264 \
--cross-prefix=x86_64-w64-mingw32-
sudo make -j`nproc` install
- name: upload bins to release
uses: softprops/action-gh-release@v1
with:
tag_name: aac_at
files: $GITHUB_WORKSPACE/bin/*
- name: Commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git checkout --orphan new_branch
git add -A
git commit -am "rebase"
git branch -D main
git branch -m main
git push origin main --force