-
Notifications
You must be signed in to change notification settings - Fork 9
70 lines (67 loc) · 1.92 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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