CI: specify sha256 checks for downloaded files on Windows build #108
Workflow file for this run
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
name: Windows | |
on: [push] | |
jobs: | |
build-windows-msvc: | |
strategy: | |
matrix: | |
include: | |
- occ_version: 7.3.0 | |
occ_zip_sha256: '2503e69d595bb4c4e760b629aba3d8cee5e6b8d0da43b0d790a7949c67fd15d0' | |
- occ_version: 7.4.0 | |
occ_zip_sha256: '6664b9a4213036ff0960edd2426258cf66844386c1a2338fa62e008f40c476bb' | |
- occ_version: 7.5.0 | |
occ_zip_sha256: '8000f261ecbf6689e48439aa5895304069d00a14efe28eb7f1d108450cb7a74f' | |
- occ_version: 7.6.0 | |
occ_zip_sha256: '137788c7693f74fb98797adfd06c1b00f66dac59beca5c3073c1f62c98b7a80f' | |
- occ_version: 7.7.0 | |
occ_zip_sha256: '82afb7bd5fd7097189ee4e98bf3bc02b4030cae7a82967db68d5f2b556801779' | |
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' | |
sha256: ${{matrix.occ_zip_sha256}} | |
- name: Extract OpenCascade | |
run: 7z x OpenCASCADE-${{matrix.occ_version}}-vc14-64.zip | |
- 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' | |
sha256: 'b6097488fa5b7a0cc610e8258e74aaa9552b48a13bc8680eedd66512d788e64f' | |
- name: Extract Assimp | |
run: 7z x assimp-5.3.1.zip | |
- name: Download jom.exe | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: 'https://www.fougue.pro/share/bin/jom.exe' | |
sha256: '700943516856c15675212bbcecc4e3d7580514456f8b6f09d634e98e25296ad4' | |
- 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 |