mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 16:14:38 +00:00
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Windows
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
windows_build:
|
|
name: Build MeshLab (Windows)
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
precision: [single_precision, double_precision]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Setup MSVC
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v2
|
|
- name: Setup env variables
|
|
shell: bash
|
|
id: envs
|
|
run: |
|
|
if [ "${{matrix.precision}}" == "double_precision" ]; then
|
|
echo ::set-output name=artifact_suffix::"_double"
|
|
else
|
|
echo ::set-output name=artifact_suffix::""
|
|
fi
|
|
echo "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC" >> $GITHUB_ENV
|
|
- name: Configure and Build
|
|
shell: bash
|
|
run: |
|
|
bash scripts/${{ runner.os }}/1_build.sh --${{ matrix.precision }} --nightly
|
|
- name: Deploy
|
|
shell: bash
|
|
run: |
|
|
bash scripts/${{ runner.os }}/2_deploy.sh
|
|
- name: NSIS script
|
|
shell: bash
|
|
run: |
|
|
bash scripts/${{ runner.os }}/resources/nsis_script.sh
|
|
- name: Create Installer
|
|
uses: joncloud/makensis-action@v1
|
|
with:
|
|
script-file: "src/install/meshlab_final.nsi"
|
|
- name: Move Installer
|
|
shell: bash
|
|
run: |
|
|
mv src/install/MeshLab*-windows.exe src/
|
|
- name: Uploading MeshLab Portable
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: meshlab_windows_portable${{steps.envs.outputs.artifact_suffix}}
|
|
path: src/install
|
|
- name: Upload Meshlab Installer
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: meshlab_windows_installer${{steps.envs.outputs.artifact_suffix}}
|
|
path: src/MeshLab*-windows.exe
|