Skip to content

Feature changes 4.0.0 #1

Feature changes 4.0.0

Feature changes 4.0.0 #1

name: Windows Release
on:
push:
branches:
- 'trunk'
tags:
- 'v*'
env:
PROG: cubiomes-viewer
SOURCE_DIR: ${{github.workspace}}
defaults:
run:
shell: cmd
working-directory: ${{env.SOURCE_DIR}}

Check failure on line 17 in .github/workflows/windows-release.yaml

View workflow run for this annotation

GitHub Actions / Windows Release

Invalid workflow file

The workflow is not valid. .github/workflows/windows-release.yaml (Line: 17, Col: 24): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SOURCE_DIR
jobs:
build:
runs-on: windows-2019
steps:
- name: (1) Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: (2) Get all tags for correct version determination
run: |
git fetch --all --tags -f
- name: (3) Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win64_mingw81'
archives: 'x86_64 qtbase qttools'
cache: true
setup-python: false
- name: (4) Build
run: |
qmake CONFIG+=release ${{env.SOURCE_DIR}}
mingw32-make
- name: (5) Deploy
run: |
mkdir ${{env.PROG}}
copy ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe ${{env.PROG}}
windeployqt --dir ${{env.PROG}} ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe --compiler-runtime --no-translations --no-system-d3d-compiler --no-opengl-sw --no-angle
- name: (6) Save build artifact
uses: actions/upload-artifact@v4
with:
name: ${{env.PROG}}-${{github.ref_name}}-win
path: ${{env.SOURCE_DIR}}\${{env.PROG}}