-
Notifications
You must be signed in to change notification settings - Fork 125
executable file
·68 lines (67 loc) · 2.85 KB
/
windows.yml
File metadata and controls
executable file
·68 lines (67 loc) · 2.85 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
67
68
# this code is absolutely atrocious but hey, if it works then it works.
"on": "push"
"jobs":
"build_run_win_64_debug":
"runs-on": "windows-latest"
"steps":
- "uses": "actions/checkout@main"
- "run": "cmd.exe /c .github\\workflows\\build_run_win_64_debug.bat"
- name: Rename binary with commit info
shell: pwsh
run: |
$shortSha = "${{ github.sha }}".Substring(0,12)
$run = "${{ github.run_number }}"
Add-Content $env:GITHUB_ENV "SHORT_SHA=$shortSha"
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
- "uses": "actions/upload-artifact@main"
"with":
"path": build\Release\vmaware_${{ github.run_number }}_${{ env.SHORT_SHA }}.exe
"name": "vmaware64_debug.exe"
"build_run_win_32_debug":
"runs-on": "windows-latest"
"steps":
- "uses": "actions/checkout@main"
- "run": "cmd.exe /c .github\\workflows\\build_run_win_32_debug.bat"
- name: Rename binary with commit info
shell: pwsh
run: |
$shortSha = "${{ github.sha }}".Substring(0,12)
$run = "${{ github.run_number }}"
Add-Content $env:GITHUB_ENV "SHORT_SHA=$shortSha"
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
- "uses": "actions/upload-artifact@main"
"with":
"path": build\Release\vmaware_${{ github.run_number }}_${{ env.SHORT_SHA }}.exe
"name": "vmaware32_debug.exe"
"build_run_win_32_release":
"runs-on": "windows-latest"
"steps":
- "uses": "actions/checkout@main"
- "run": "cmd.exe /c .github\\workflows\\build_run_win_32_release.bat"
- name: Rename binary with commit info
shell: pwsh
run: |
$shortSha = "${{ github.sha }}".Substring(0,12)
$run = "${{ github.run_number }}"
Add-Content $env:GITHUB_ENV "SHORT_SHA=$shortSha"
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
- "uses": "actions/upload-artifact@main"
"with":
"path": build\Release\vmaware_${{ github.run_number }}_${{ env.SHORT_SHA }}.exe
"name": "vmaware32_release.exe"
"build_run_win_64_release":
"runs-on": "windows-latest"
"steps":
- "uses": "actions/checkout@main"
- "run": "cmd.exe /c .github\\workflows\\build_run_win_64_release.bat"
- name: Rename binary with commit info
shell: pwsh
run: |
$shortSha = "${{ github.sha }}".Substring(0,12)
$run = "${{ github.run_number }}"
Add-Content $env:GITHUB_ENV "SHORT_SHA=$shortSha"
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
- "uses": "actions/upload-artifact@main"
"with":
"path": build\Release\vmaware_${{ github.run_number }}_${{ env.SHORT_SHA }}.exe
"name": "vmaware64_release.exe"