Skip to content

App: add action to switch Home/Documents page #6

App: add action to switch Home/Documents page

App: add action to switch Home/Documents page #6

Workflow file for this run

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: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- 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: 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
- 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
release\mayo.exe --runtests -o utests-output.txt
more utests-output.txt