Skip to content

Release Builds

Release Builds #3

Workflow file for this run

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