-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c914e90
commit 9784412
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: BuildItMac | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: macos-11 | ||
steps: | ||
- name: "Clone source" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
- name: "Download Qt5" | ||
run: | | ||
curl --output qt5.15.8-x86_64-macos-static.tar.xz -L "https://github.com/LeagueToolkit/cslol-manager/releases/download/release23/qt5.15.8-x86_64-macos-static.tar.xz" | ||
tar xf qt5.15.8-x86_64-macos-static.tar.xz --strip-components 2 -C $HOME | ||
- name: "Build" | ||
run: | | ||
cmake -DCMAKE_PREFIX_PATH=$HOME/qt5.15.8-x86_64-macos-static -DCMAKE_BUILD_TYPE=Release -B build -S . | ||
cmake --build build | ||
- name: "Package" | ||
shell: bash | ||
run: | | ||
mkdir cslol-manager-macos | ||
cp LICENSE cslol-manager-macos/ | ||
cp dist/SOURCE.URL cslol-manager-macos/ | ||
cp build/cslol-tools/wad-* cslol-manager-macos/ | ||
cp -R build/cslol-manager.app cslol-manager-macos/ | ||
cp build/cslol-tools/mod-tools cslol-manager-macos/cslol-manager.app/Contents/MacOS/ | ||
- name: 'Upload Artifact' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cslol-manager-macos | ||
path: cslol-manager-macos/ | ||
retention-days: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: BuildQtMac | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: macos-11 | ||
steps: | ||
- name: "Clone source" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
- name: "Clone Qt" | ||
run: | | ||
git clone https://github.com/qt/qt5 | ||
pushd qt5 | ||
git checkout v5.15.8-lts-lgpl | ||
git submodule update --init {qtbase,qtsvg,qtdeclarative,qtgraphicaleffects,qtimageformats,qtquickcontrols2} | ||
popd | ||
- name: "Build" | ||
run: | | ||
mkdir qt5-build | ||
pushd qt5-build | ||
../qt5/configure -platform macx-clang -prefix $HOME/qt5.15.8-x86_64-macos-static -release -static -opensource -confirm-license -no-pch -no-iconv -no-dbus -no-icu -no-fontconfig -no-freetype -qt-harfbuzz -qt-doubleconversion -qt-zlib -qt-libpng -qt-libjpeg -qt-pcre -nomake tools -nomake examples -nomake tests -no-feature-pdf -no-feature-sql -no-feature-sqlmodel -no-feature-testlib -no-feature-testlib_selfcover -no-feature-qml-profiler -no-feature-qml-preview | ||
make | ||
mkdir $HOME/qt5.15.8-x86_64-macos-static | ||
make install | ||
popd | ||
- name: "Package" | ||
shell: bash | ||
run: | | ||
tar caf qt5.15.8-x86_64-macos-static.tar.xz $HOME/qt5.15.8-x86_64-macos-static | ||
- name: 'Upload Artifact' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: qt5.15.8-x86_64-macos-static | ||
path: qt5.15.8-x86_64-macos-static.tar.xz | ||
retention-days: 15 |