-
Notifications
You must be signed in to change notification settings - Fork 280
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
Showing
162 changed files
with
10,480 additions
and
4,448 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,59 @@ | ||
name: macOS | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
cache: true | ||
cache-key-prefix: QtCache | ||
|
||
- name: Install OpenCascade | ||
run: | | ||
brew install opencascade | ||
GH_CASCADE_BASE_DIR=`brew info opencascade | grep -E -i --only-matching --max-count=1 "^(/[a-z\.\-_0-9]+)+"` | ||
echo "GH_CASCADE_INC_DIR=$GH_CASCADE_BASE_DIR/include/opencascade" >> $GITHUB_ENV | ||
echo "GH_CASCADE_LIB_DIR=$GH_CASCADE_BASE_DIR/lib" >> $GITHUB_ENV | ||
- name: Install Assimp | ||
run: | | ||
brew install assimp | ||
GH_ASSIMP_BASE_DIR=`brew info assimp | grep -E -i --only-matching --max-count=1 "^(/[a-z\.\-_0-9]+)+"` | ||
echo "GH_ASSIMP_INC_DIR=$GH_ASSIMP_BASE_DIR/include/assimp" >> $GITHUB_ENV | ||
echo "GH_ASSIMP_LIB_DIR=$GH_ASSIMP_BASE_DIR/lib" >> $GITHUB_ENV | ||
- name: Get count of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v1 | ||
id: cpu-cores | ||
|
||
- name: Build | ||
run: | | ||
mkdir ${{github.workspace}}/build | ||
cd ${{github.workspace}}/build | ||
echo CASCADE_INC_DIR=${{env.GH_CASCADE_INC_DIR}} | ||
echo CASCADE_LIB_DIR=${{env.GH_CASCADE_LIB_DIR}} | ||
echo ASSIMP_INC_DIR=${{env.GH_ASSIMP_INC_DIR}} | ||
echo ASSIMP_LIB_DIR=${{env.GH_ASSIMP_LIB_DIR}} | ||
[ ! -d $CASCADE_INC_DIR ] && echo "ERROR: OpenCascade include dir doesn't exist" | ||
[ ! -d $CASCADE_LIB_DIR ] && echo "ERROR: OpenCascade lib dir doesn't exist" | ||
[ ! -d $ASSIMP_INC_DIR ] && echo "ERROR: assimp include dir doesn't exist" | ||
[ ! -d $ASSIMP_LIB_DIR ] && echo "ERROR: assimp lib dir doesn't exist" | ||
qmake .. CONFIG+=withtests \ | ||
CASCADE_INC_DIR=${{env.GH_CASCADE_INC_DIR}} \ | ||
CASCADE_LIB_DIR=${{env.GH_CASCADE_LIB_DIR}} \ | ||
ASSIMP_INC_DIR=${{env.GH_ASSIMP_INC_DIR}} \ | ||
ASSIMP_LIB_DIR=${{env.GH_ASSIMP_LIB_DIR}} | ||
make -j${{steps.cpu-cores.outputs.count}} | ||
- name: Execute Unit Tests | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
./mayo.app/Contents/MacOS/mayo --runtests |
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,99 @@ | ||
name: Windows | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-windows-msvc: | ||
strategy: | ||
matrix: | ||
occ_version: [7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.7.0] | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
cache: true | ||
cache-key-prefix: QtCache | ||
|
||
- name: Cache OpenCascade archive | ||
id: cache-occ | ||
uses: actions/cache@v3 | ||
with: | ||
path: OpenCASCADE-${{matrix.occ_version}}-vc14-64.zip | ||
key: occ-${{matrix.occ_version}} | ||
|
||
- name: Download OpenCascade | ||
if: steps.cache-occ.outputs.cache-hit != 'true' | ||
uses: carlosperate/download-file-action@v2 | ||
with: | ||
file-url: 'https://www.fougue.pro/share/bin/OpenCASCADE-${{matrix.occ_version}}-vc14-64.zip' | ||
|
||
- name: Extract OpenCascade | ||
shell: pwsh | ||
run: | | ||
Expand-Archive -Path OpenCASCADE-${{matrix.occ_version}}-vc14-64.zip -DestinationPath . | ||
- name: Cache Assimp archive | ||
id: cache-assimp | ||
uses: actions/cache@v3 | ||
with: | ||
path: assimp-5.3.1.zip | ||
key: assimp-5.3.1 | ||
|
||
- name: Download Assimp | ||
if: steps.cache-assimp.outputs.cache-hit != 'true' | ||
uses: carlosperate/download-file-action@v2 | ||
with: | ||
file-url: 'https://www.fougue.pro/share/bin/assimp-5.3.1.zip' | ||
|
||
- name: Extract Assimp | ||
shell: pwsh | ||
run: | | ||
Expand-Archive -Path assimp-5.3.1.zip -DestinationPath . | ||
- name: Download jom.exe | ||
uses: carlosperate/download-file-action@v2 | ||
with: | ||
file-url: 'https://www.fougue.pro/share/bin/jom.exe' | ||
|
||
- name: Get count of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v1 | ||
id: cpu-cores | ||
|
||
- name: Create Build folder | ||
run: mkdir ${{github.workspace}}/build | ||
|
||
- name: Configure Compiler | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: QMake | ||
working-directory: ${{github.workspace}}/build | ||
shell: cmd | ||
run: | | ||
call ..\OpenCASCADE-${{matrix.occ_version}}-vc14-64\opencascade-${{matrix.occ_version}}\env.bat | ||
echo CSF_OCCTIncludePath=%CSF_OCCTIncludePath% | ||
echo CSF_OCCTLibPath=%CSF_OCCTLibPath% | ||
qmake --version | ||
qmake ..\mayo.pro CONFIG+=release CONFIG+=withtests ^ | ||
ASSIMP_INC_DIR=${{github.workspace}}/assimp-5.3.1/include/assimp ^ | ||
ASSIMP_LIB_DIR=${{github.workspace}}/assimp-5.3.1/lib ^ | ||
ASSIMP_LIBNAME_SUFFIX=-vc143-mt | ||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
..\jom.exe -j${{steps.cpu-cores.outputs.count}} | ||
- name: Execute Unit Tests | ||
working-directory: ${{github.workspace}}/build | ||
shell: cmd | ||
run: | | ||
call ..\OpenCASCADE-${{matrix.occ_version}}-vc14-64\opencascade-${{matrix.occ_version}}\env.bat | ||
set PATH=${{github.workspace}}\assimp-5.3.1\bin;%PATH% | ||
release\mayo.exe --runtests -o utests-output.txt | ||
more utests-output.txt |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
build-* | ||
*.user | ||
*.user.* | ||
installer/setupvars.iss | ||
installer/Output | ||
custom.pri | ||
custom.pri | ||
env.pri |
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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.