meshlab/.github/workflows/Windows.yml
2020-11-13 14:52:11 +01:00

60 lines
1.8 KiB
YAML

name: Windows
on: [push, pull_request]
jobs:
windows_build:
name: Build MeshLab (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Download Jom
run: |
Invoke-WebRequest -Uri "http://download.qt.io/official_releases/jom/jom_1_1_3.zip" -OutFile "jom_1_1_3.zip"
New-Item -Name "jom" -ItemType "directory"
Expand-Archive -Path jom_1_1_3.zip -DestinationPath .\jom
echo "$(Get-Location)\jom" >> GITHUB_PATH
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
modules: xmlpatterns
- name: Setup env variables
id: envs
run: |
echo "::set-output name=date::$(type ML_VERSION)"
- name: Configure and Build
shell: bash
run: |
sh scripts/${{ runner.os }}/1_build.sh
- name: Deploy
shell: bash
run: |
sh scripts/${{ runner.os }}/2_deploy.sh
- name: NSIS script
shell: bash
run: |
sh scripts/${{ runner.os }}/resources/nsis_script.sh
- name: Create Installer
uses: joncloud/makensis-action@v1
with:
script-file: "src/install/meshlab_final.nsi"
- name: Rename Installer
shell: bash
run: |
mv src/install/MeshLab${{steps.envs.outputs.date}}.exe src/MeshLab${{steps.envs.outputs.date}}-windows.exe
- name: Uploading MeshLab Portable
uses: actions/upload-artifact@v1
with:
name: meshlab_windows_portable
path: src/install
- name: Upload Meshlab Installer
uses: actions/upload-artifact@v1
with:
name: meshlab_windows_installer
path: src/MeshLab${{steps.envs.outputs.date}}-windows.exe