File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -2,33 +2,29 @@ name: Upload
22
33on : workflow_dispatch
44
5- env :
6- LUAINSTALLER_VERSION : 0.6.0.0
7-
85jobs :
96 build :
107 runs-on : ${{ matrix.os }}
118 name : Upload
9+ if : ${{ github.actor == 'luau-project' && github.triggering_actor == 'luau-project' && github.repository == 'luau-project/LuaInstaller' }}
1210
1311 strategy :
14- fail-fast : true
1512 matrix :
1613 include :
17-
1814 - os : windows-latest
1915 arch : x86
2016
2117 - os : windows-latest
2218 arch : x64
2319
24- - os : windows-latest
20+ - os : windows-11-arm
2521 arch : arm64
2622
2723 steps :
2824
2925 - name : Check arch input
3026 run : |
31- $allowed_archs = "x86", "x64";
27+ $allowed_archs = "x86", "x64", "arm64" ;
3228 if (-not ($allowed_archs -contains "${{ matrix.arch }}"))
3329 {
3430 Write-Host "Arch not found";
4137 path : LuaInstaller
4238 ref : ${{ github.ref }}
4339
40+ - name : Retrieve LuaInstaller version and store it on environment variable
41+ run : |
42+ $pattern = "\<Version\>(.*?)\<\/Version\>";
43+ $csproj = Join-Path -Path "LuaInstaller" -ChildPath "LuaInstaller" |
44+ Join-Path -ChildPath "LuaInstaller.csproj";
45+ $version_line = (Get-Content $csproj) -match $pattern;
46+
47+ if (-not ($version_line -match $pattern))
48+ {
49+ Write-Host "LuaInstaller version not found";
50+ exit 1;
51+ }
52+
53+ $version = $Matches[1];
54+ $version = $version.Trim();
55+ Add-Content "${{ github.env }}" "LUAINSTALLER_VERSION=${version}";
56+
4457 - name : Set environment variables
4558 run : |
4659 $wpf_dir = Join-Path "${{ runner.temp }}" -ChildPath LuaInstaller.EndUsers;
You can’t perform that action at this time.
0 commit comments