-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
76 additions
and
30 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
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,51 @@ | ||
on: [push, workflow_dispatch] | ||
|
||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
jobs: | ||
build: | ||
name: Bundle build | ||
runs-on: macos-10.15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v2.6.2 | ||
with: | ||
host: mac | ||
modules: 'qtcharts' | ||
extra: --external 7z | ||
|
||
- name: Build cryptopp | ||
run: | | ||
brew install llvm libomp | ||
cd external-libs/cryptopp | ||
export CXXFLAGS="-DNDEBUG -g2 -O3 -fopenmp -L/usr/local/opt/llvm/lib -I/usr/local/opt/llvm/include" | ||
export CC="/usr/local/opt/llvm/bin/clang" | ||
export CXX="/usr/local/opt/llvm/bin/clang++" | ||
make -j$(sysctl -n hw.logicalcpu) dynamic cryptest.exe | ||
make -j$(sysctl -n hw.logicalcpu) libcryptopp.a libcryptopp.so cryptest.exe | ||
sudo make install PREFIX=/usr/local | ||
- name: qmake and make | ||
run: | | ||
sudo xcode-select -s /Applications/Xcode_12.1.1.app/Contents/Developer | ||
qmake QMAKE_CC="/usr/local/opt/llvm/bin/clang" QMAKE_CXX="/usr/local/opt/llvm/bin/clang++" CONFIG+=release QMAKE_LIBS+="-L/usr/local/opt/llvm/lib -L/usr/local/lib" INCLUDEPATH+="-I/usr/local/opt/llvm/include" | ||
make -j$(sysctl -n hw.logicalcpu) | ||
- name: macdeployqt | ||
id: macdeploy | ||
run: | | ||
export FIRST_NAME="TheoreticalDiary-v$(cat text/VERSION.txt)-x86_64" | ||
echo ::set-output name=first_name::${FIRST_NAME} | ||
macdeployqt TheoreticalDiary.app | ||
- name: Upload to Github | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{steps.macdeploy.outputs.first_name}} | ||
path: TheoreticalDiary.app |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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