Skip to content

Build Windows

Build Windows #3

Workflow file for this run

name: Build Windows
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Build
run: cargo build --release --target x86_64-pc-windows-msvc --features icon
- name: Rename binary
shell: bash
run: cp "target/x86_64-pc-windows-msvc/release/twigui-installer.exe" "twigui-installer-windows.exe"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: twigui-installer-windows.exe
path: twigui-installer-windows.exe
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: twigui-installer-windows.exe
path: artifacts
- name: Upload to Beta Release
uses: softprops/action-gh-release@v1
with:
tag_name: beta-${{ github.ref_name }}
name: Beta Build (${{ github.ref_name }})
body: |
Automated beta build from the `${{ github.ref_name }}` branch.
**Warning:** This is a pre-release build and may contain bugs.
prerelease: true
files: artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}