clean up CI yml and add ffmpeg 4.4
This commit is contained in:
parent
f50413cd45
commit
040f0fb809
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ "*" ]
|
branches: [ "*" ]
|
||||||
tags: [ "*" ]
|
tags: [ "*" ]
|
||||||
|
paths-ignore:
|
||||||
|
- "*.7z"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
@ -11,9 +13,13 @@ jobs:
|
|||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
MACOSX_DEPLOYMENT_TARGET: "10.13"
|
|
||||||
SDL_VER: "2.0.16"
|
SDL_VER: "2.0.16"
|
||||||
FFMPEG_VER: "4.4"
|
FFMPEG_VER: "4.4"
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: "10.13"
|
||||||
|
CCACHE_CPP2: "yes"
|
||||||
|
CCACHE_SLOPPINESS: "time_macros"
|
||||||
|
CC: "ccache clang"
|
||||||
|
CXX: "ccache clang++"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
@ -29,42 +35,42 @@ jobs:
|
|||||||
${{ runner.os }}-macos-
|
${{ runner.os }}-macos-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
brew install p7zip ninja ccache nasm
|
brew install p7zip ccache nasm
|
||||||
- name: Build SDL
|
- name: Build SDL
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
||||||
export CCACHE_CPP2=yes
|
|
||||||
export CCACHE_SLOPPINESS=time_macros
|
|
||||||
export CC="ccache clang"
|
|
||||||
export CXX="ccache clang++"
|
|
||||||
|
|
||||||
cd SDL
|
mkdir -p SDL/build/sdl-${SDL_VER}
|
||||||
mkdir -p build/${SDL_VER}
|
cd SDL/build
|
||||||
cd build
|
|
||||||
cmake ../ -DBUILD_SHARED_LIBS=1
|
cmake ../ -DBUILD_SHARED_LIBS=1
|
||||||
make -j4
|
make -j4
|
||||||
make install DESTDIR=$(pwd)/${SDL_VER}
|
make install DESTDIR=$(pwd)/sdl-${SDL_VER}
|
||||||
ls
|
|
||||||
|
7z a "sdl-${SDL_VER}.7z" sdl-${SDL_VER}/
|
||||||
- name: Build FFMPEG
|
- name: Build FFMPEG
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
||||||
export CCACHE_CPP2=yes
|
|
||||||
export CCACHE_SLOPPINESS=time_macros
|
|
||||||
export CC="ccache clang"
|
|
||||||
export CXX="ccache clang++"
|
|
||||||
|
|
||||||
cd ffmpeg
|
mkdir -p ffmpeg/build/ffmpeg-${FFMPEG_VER}
|
||||||
mkdir -p build/${FFMPEG_VER}
|
cd ffmpeg/build
|
||||||
cd build
|
|
||||||
|
# The included lzma is built for 10.15 can generaates linker warnings
|
||||||
../configure --cc="${CC}" --cxx="${CXX}" --enable-shared --disable-static --disable-doc \
|
../configure --cc="${CC}" --cxx="${CXX}" --enable-shared --disable-static --disable-doc \
|
||||||
--disable-lzma
|
--disable-lzma
|
||||||
make -j4
|
make -j4
|
||||||
make install DESTDIR=$(pwd)/ffmpeg-${FFMPEG_VER}
|
make install DESTDIR=$(pwd)/ffmpeg-${FFMPEG_VER}
|
||||||
ls
|
|
||||||
|
7z a "ffmpeg-${FFMPEG_VER}.7z" ffmpeg-${FFMPEG_VER}/
|
||||||
|
- name: Pack
|
||||||
|
run: |
|
||||||
|
# move the compiled archive into the artifacts directory to be uploaded
|
||||||
|
mkdir artifacts
|
||||||
|
mv "SDL/build/sdl-${SDL_VER}.7z" artifacts/
|
||||||
|
mv "ffmpeg/build/ffmpeg-${FFMPEG_VER}.7z" artifacts/
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos
|
||||||
path: |
|
path: |
|
||||||
SDL/build/sdl-${{ env.SDL_VER }}
|
artifacts/
|
||||||
ffmpeg/build/ffmpeg-${{ env.FFMPEG_VER }}
|
|
||||||
|
3
ffmpeg/ffmpeg-4.4.7z
Normal file
3
ffmpeg/ffmpeg-4.4.7z
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e49f37fabb5b8f8dbde32f571e358f4a6bed4111d395781538ff5cf75a952da3
|
||||||
|
size 7865791
|
Loading…
x
Reference in New Issue
Block a user