Fix macOS action (#152)
This commit is contained in:
parent
6018a52828
commit
2e2165b16a
1 changed files with 6 additions and 4 deletions
10
.github/workflows/mac-packaged.yml
vendored
10
.github/workflows/mac-packaged.yml
vendored
|
|
@ -62,7 +62,7 @@ jobs:
|
||||||
CMAKE_LIBRARY_PATH: /usr/local/ffmpeg/lib
|
CMAKE_LIBRARY_PATH: /usr/local/ffmpeg/lib
|
||||||
OPENALDIR: /usr/local/opt/openal-soft
|
OPENALDIR: /usr/local/opt/openal-soft
|
||||||
OPENSSL_ROOT_DIR: /usr/local/opt/openssl@1.1
|
OPENSSL_ROOT_DIR: /usr/local/opt/openssl@1.1
|
||||||
Qt5_DIR: /usr/local/opt/qt/lib/cmake/Qt5
|
Qt5_DIR: /usr/local/opt/qt@5/lib/cmake/Qt5
|
||||||
UPLOAD_ARTIFACT: "false"
|
UPLOAD_ARTIFACT: "false"
|
||||||
ONLY_CACHE: "false"
|
ONLY_CACHE: "false"
|
||||||
MANUAL_CACHING: "1"
|
MANUAL_CACHING: "1"
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
|
|
||||||
- name: First set up.
|
- name: First set up.
|
||||||
run: |
|
run: |
|
||||||
brew install cmake dav1d meson openal-soft openssl opus nasm ninja pkg-config python qt yasm xz
|
brew install cmake dav1d meson openal-soft openssl opus nasm ninja pkg-config python qt@5 yasm xz
|
||||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||||
|
|
||||||
xcodebuild -version > CACHE_KEY.txt
|
xcodebuild -version > CACHE_KEY.txt
|
||||||
|
|
@ -92,12 +92,14 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "CACHE_KEY=`md5 -q CACHE_KEY.txt`" >> $GITHUB_ENV
|
echo "CACHE_KEY=`md5 -q CACHE_KEY.txt`" >> $GITHUB_ENV
|
||||||
|
|
||||||
echo /usr/local/opt/qt/bin >> $GITHUB_PATH
|
echo /usr/local/opt/qt@5/bin >> $GITHUB_PATH
|
||||||
|
|
||||||
mkdir -p Libraries/macos
|
mkdir -p Libraries/macos
|
||||||
cd Libraries/macos
|
cd Libraries/macos
|
||||||
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV
|
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
curl -o tg_owt-version.json https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master
|
||||||
|
|
||||||
- name: FFmpeg cache.
|
- name: FFmpeg cache.
|
||||||
id: cache-ffmpeg
|
id: cache-ffmpeg
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|
@ -232,7 +234,7 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/tg_owt
|
path: ${{ env.LibrariesPath }}/tg_owt
|
||||||
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}
|
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
|
||||||
- name: WebRTC.
|
- name: WebRTC.
|
||||||
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue