Build for Windows #44
Workflow file for this run
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: Build for Windows | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: git | |
- run: git config --global core.autocrlf input | |
- name: Extract tag name | |
id: tag | |
uses: actions/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
return context.payload.ref.replace(/\/refs\/tags\//, ''); | |
- uses: actions/checkout@v4 | |
- name: Build Dino | |
run: | | |
msys2 -c './build-win64.sh --prepare' | |
msys2 -c './build-win64.sh' | |
- name: Build Dino installer | |
run: | | |
msys2 -c './build-win64.sh --build-installer' | |
- name: Upload Dino installer | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dino-installer | |
path: windows-installer/dino-installer.exe | |
- name: Release Dino installer | |
if: ${{ github.ref_type == 'tag' }} | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: windows-installer/dino-installer.exe | |
asset_name: dino-installer.exe | |
tag: ${{ github.ref }} | |
release_name: Dino ${{ steps.tag.outputs.result }} | |
overwrite: true |