Release Builds #5
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: Release Builds | |
on: workflow_dispatch | |
jobs: | |
release-windows: | |
name: Build Windows (10+) release | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build Binary | |
shell: powershell | |
run: | | |
& cargo build --locked --release | |
- name: Upload Files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lutgen-x86_64-windows | |
path: target/release/lutgen.exe | |
release-legacy-windows: | |
name: Build legacy Windows (7+) release | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout | |
- uses: actions-rs/toolchain@v1 | |
with: | |
# 1.78 disables windows 7 support: https://blog.rust-lang.org/2024/02/26/Windows-7.html | |
toolchain: 1.77.2 | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build Binary | |
shell: powershell | |
run: | | |
& cargo build --locked --release | |
- name: Upload Files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lutgen-x86_64-legacy-windows | |
path: target/release/lutgen.exe | |
release-aur: | |
name: Build AUR release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build aur release | |
run: | | |
cargo install --git https://github.com/fosskers/cargo-aur --branch colin/custom-commands | |
cargo aur -o aur | |
- name: Upload Files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lutgen-aur | |
path: aur |