File tree 1 file changed +11
-13
lines changed
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -17,40 +17,38 @@ jobs:
17
17
# This workflow contains a single job called "build"
18
18
build :
19
19
# The type of runner that the job will run on
20
- runs-on : windows-2019
20
+ runs-on : windows-2022
21
21
22
22
# Steps represent a sequence of tasks that will be executed as part of the job
23
23
steps :
24
+ - uses : actions/checkout@v4
25
+ with :
26
+ submodule : recursive
27
+ fetch-depth : 0
28
+
24
29
- name : Check Commit and Install 7Zip PowerShell Module
25
30
shell : powershell
26
-
27
31
run : |
28
- # cancel early, if not build commit
29
- $strVal="$Env:COMMIT_MESSAGE"
30
32
# Convert commit message to a single line if multiline
31
- $singleLineStrVal = $strVal -replace "`r`n", " " -replace "`n", " "
33
+ $singleLineStrVal = "$Env:COMMIT_MESSAGE" -replace "`r`n", " " -replace "`n", " "
32
34
if($singleLineStrVal -match '#GITBUILD')
33
35
{
34
- Write-Host 'True'
35
- } else {
36
- Write-Host 'False'
37
- exit(1)
36
+ Write-Host 'Commit message matched with "#GITBUILD"'
38
37
}
39
- Install-Module 7Zip4PowerShell -Force -Verbose
38
+ Write-Host 'Installing 7Zip PowerShell module'
40
39
env :
41
40
COMMIT_MESSAGE : " ${{ github.event.commits[0].message }}"
42
41
43
- - uses : actions/checkout@v2
44
42
- name : Restore NuGet packages
45
43
run : nuget restore UnityLauncherPro.sln
46
44
47
45
- name : Build Binary
48
46
shell : cmd
49
- run : call .\ Build.cmd
47
+ run : call ./ Build.cmd
50
48
51
49
- name : Build Artifact
52
50
shell : cmd
53
- run : call .\ ArtifactBuild.cmd
51
+ run : call ./ ArtifactBuild.cmd
54
52
55
53
- name : Get current date and time
56
54
id : datetime
You can’t perform that action at this time.
0 commit comments