This repository has been archived by the owner on Nov 17, 2024. It is now read-only.
Release #2
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: Release | |
on: | |
workflow_dispatch: # allows manual triggering | |
inputs: | |
create_release: | |
description: 'Create new release' | |
required: true | |
type: string | |
env: | |
QT_VERSION: 5.15.2 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Windows 10 SDK | |
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2 | |
with: | |
sdk-version: 22621 | |
- name: Install Qt32 | |
uses: jurplel/[email protected] | |
with: | |
version: ${{ env.QT_VERSION }} | |
host: windows | |
target: desktop | |
arch: win32_msvc2019 | |
dir: ${{ runner.temp }} | |
setup-python: true | |
- name: Run build script 32 | |
run: python build.py 32 | |
- name: Install Qt | |
uses: jurplel/[email protected] | |
with: | |
version: ${{ env.QT_VERSION }} | |
host: windows | |
target: desktop | |
arch: win64_msvc2019_64 | |
dir: ${{ runner.temp }} | |
setup-python: true | |
- name: Run build script | |
run: python build.py 64 | |
- name: Run build script | |
run: python build.py 0 | |
- name: Release LunaTranslator | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ github.event.inputs.create_release }} | |
files: | | |
builds/*.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |