mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
Use Ninja for macOS builds on GitHub Actions
Ninja makes for faster builds compared to Make.
This commit is contained in:
parent
bee50481f5
commit
d13a418d06
15
.github/workflows/rolling-release.yml
vendored
15
.github/workflows/rolling-release.yml
vendored
|
@ -148,7 +148,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
del /Q bin\ARM64\*.pdb bin\ARM64\*.exp bin\ARM64\*.lib bin\ARM64\*.iobj bin\ARM64\*.ipdb bin\ARM64\common-tests*
|
del /Q bin\ARM64\*.pdb bin\ARM64\*.exp bin\ARM64\*.lib bin\ARM64\*.iobj bin\ARM64\*.ipdb bin\ARM64\common-tests*
|
||||||
rename bin\ARM64\updater-ARM64-ReleaseLTCG.exe updater.exe
|
rename bin\ARM64\updater-ARM64-ReleaseLTCG.exe updater.exe
|
||||||
|
|
||||||
- name: Create arm64 release archive
|
- name: Create arm64 release archive
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
@ -271,7 +271,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_NOGUI_FRONTEND=ON -DBUILD_QT_FRONTEND=ON -DUSE_DRMKMS=ON -DUSE_EGL=ON -DUSE_SDL2=ON -DUSE_WAYLAND=ON -DUSE_X11=ON -G Ninja ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_NOGUI_FRONTEND=ON -DBUILD_QT_FRONTEND=ON -DUSE_DRMKMS=ON -DUSE_EGL=ON -DUSE_SDL2=ON -DUSE_WAYLAND=ON -DUSE_X11=ON -G Ninja ..
|
||||||
ninja
|
cmake --build . --parallel
|
||||||
../scripts/generate_appimages.sh $(pwd)
|
../scripts/generate_appimages.sh $(pwd)
|
||||||
|
|
||||||
- name: Upload NoGUI AppImage
|
- name: Upload NoGUI AppImage
|
||||||
|
@ -309,7 +309,7 @@ jobs:
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install qt5 sdl2 curl
|
brew install qt5 sdl2 curl ninja
|
||||||
|
|
||||||
- name: Clone mac externals
|
- name: Clone mac externals
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -322,8 +322,8 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
export MACOSX_DEPLOYMENT_TARGET=10.14
|
export MACOSX_DEPLOYMENT_TARGET=10.14
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_NOGUI_FRONTEND=OFF -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -DQt5_DIR=/usr/local/opt/qt@5/lib/cmake/Qt5 ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_NOGUI_FRONTEND=OFF -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -DQt5_DIR=/usr/local/opt/qt@5/lib/cmake/Qt5 -G Ninja ..
|
||||||
cmake --build . --parallel 2
|
cmake --build . --parallel
|
||||||
cd bin
|
cd bin
|
||||||
zip -r duckstation-mac-release.zip DuckStation.app/
|
zip -r duckstation-mac-release.zip DuckStation.app/
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ jobs:
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: "linux-x64-appimage-qt-zsync"
|
name: "linux-x64-appimage-qt-zsync"
|
||||||
|
|
||||||
- name: Create preview release
|
- name: Create preview release
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
@ -393,7 +393,7 @@ jobs:
|
||||||
linux-x64-appimage-nogui-zsync/duckstation-nogui-x64.AppImage.zsync
|
linux-x64-appimage-nogui-zsync/duckstation-nogui-x64.AppImage.zsync
|
||||||
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
||||||
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
|
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
|
||||||
|
|
||||||
- name: Create dev release
|
- name: Create dev release
|
||||||
if: github.ref == 'refs/heads/dev'
|
if: github.ref == 'refs/heads/dev'
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
@ -413,4 +413,3 @@ jobs:
|
||||||
linux-x64-appimage-nogui-zsync/duckstation-nogui-x64.AppImage.zsync
|
linux-x64-appimage-nogui-zsync/duckstation-nogui-x64.AppImage.zsync
|
||||||
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
||||||
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
|
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue