-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 2.01 KB
/
rust.yml
File metadata and controls
69 lines (57 loc) · 2.01 KB
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
on:
push:
branches:
- main
name: Rust-Release-Nightly
jobs:
build_windows_exe:
name: Build Windows Installer
runs-on: "windows"
steps:
- uses: actions/checkout@v4
- name: build
run: |
cargo build --release
signtool.exe sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a ".\target\release\LinuxLauncher.exe"
Copy-Item -Path ".\target\release\LinuxLauncher.exe" -Destination ".\assets\"
Write-Output "Copied Item"
Start-Process -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList @(".\assets\Setup.iss") -NoNewWindow -Wait
checksum generate ".\assets\LinuxLauncher.exe" -o ".\assets\checksums.txt"
checksum generate ".\assets\Output\LinuxLauncherSetup.exe" -o ".\assets\checksums.txt"
- name: Temporarily Save File
uses: actions/upload-artifact@v4
with:
name: windows
path: |
./assets/Output/LinuxLauncherSetup.exe
./assets/LinuxLauncher.exe
./assets/checksums.txt
retention-days: 1
- name: cleanup
run: |
cargo clean
Remove-Item ".\assets\LinuxLauncher.exe"
Remove-Item ".\assets\Output" -Recurse -Force
Remove-Item ".\assets\checksums.txt"
publish_release:
name: Publish Files
runs-on: "windows"
needs: "build_windows_exe"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Files
uses: actions/download-artifact@v4
with:
path: ./artifacts
merge-multiple: true
- uses: "ModeSevenIndustrialSolutions/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly"
prerelease: true
title: "Dev Build"
files: |
./artifacts/Output/LinuxLauncherSetup.exe
./artifacts/checksums.txt
./artifacts/LinuxLauncher.exe