Skip to content

Commit

Permalink
CI: support assimp for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Nov 15, 2023
1 parent da4a33b commit dfddd4a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ jobs:
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:
Expand All @@ -61,7 +79,10 @@ jobs:
echo CSF_OCCTIncludePath=%CSF_OCCTIncludePath%
echo CSF_OCCTLibPath=%CSF_OCCTLibPath%
qmake --version
qmake ..\mayo.pro CONFIG+=release CONFIG+=withtests
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
Expand All @@ -73,5 +94,6 @@ jobs:
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

0 comments on commit dfddd4a

Please sign in to comment.