-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.26 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
name: Publish Release
concurrency:
group: "release"
cancel-in-progress: true
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build & Publish
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup toolchain
run: |
rustup toolchain add --profile=minimal stable
rustup target add x86_64-pc-windows-msvc
rustup target add i686-pc-windows-msvc
- name: Build
run: |
cargo build --target=x86_64-pc-windows-msvc --release
cargo build --target=i686-pc-windows-msvc --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: osu-switcher
path: ${{ github.workspace }}/target/**/osu-switcher.exe
- run: |
mv ./target/x86_64-pc-windows-msvc/release/osu-switcher.exe ./osu-switcher-x86_64.exe
mv ./target/i686-pc-windows-msvc/release/osu-switcher.exe ./osu-switcher-x86.exe
- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: |
${{ github.workspace }}/*.exe