Skip to content

Build and Release script #3

Build and Release script

Build and Release script #3

Workflow file for this run

name: Build and Release
# on:
# push:
# tags:
# - 'v*'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Checkout msbuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '16.11'
msbuild-architecture: x64
- name: Set up MSVC
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
where.exe cl.exe
- name: Set up Qt6
shell: powershell
run: |
choco install qt6-base-dev
where.exe qmake
- name: Build
run: \
qmake
nmake
- name: Create 7Z file
run: |
7z a cpi-windows.7z cpi.exe LICENSE translations
# - name: Create release
# id: create_release
# uses: actions/create-release@main
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# - name: Upload release asset
# uses: actions/upload-release-asset@main
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: cpi-windows.7z
# asset_name: cpi-windows-${{ github.ref_name }}.7z
# asset_content_type: application/x-7z-compressed