Skip to content

Commit

Permalink
Add mac build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Mar 26, 2023
1 parent c914e90 commit 9784412
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/builditmac.yaml
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
37 changes: 37 additions & 0 deletions .github/workflows/buildqtmac.yaml
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

0 comments on commit 9784412

Please sign in to comment.