File tree Expand file tree Collapse file tree 3 files changed +9
-39
lines changed Expand file tree Collapse file tree 3 files changed +9
-39
lines changed Original file line number Diff line number Diff line change @@ -7,49 +7,28 @@ defaults:
7
7
8
8
jobs :
9
9
build :
10
- name : Build ${{ matrix.rid }}
11
- runs-on : ${{ matrix.os }}
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
12
strategy :
13
13
fail-fast : false
14
- matrix :
15
- include :
16
- - os : windows-latest
17
- rid : win-x64
18
- - os : windows-latest
19
- rid : win-x86
20
- - os : macos-latest
21
- rid : osx-x64
22
- - os : ubuntu-latest
23
- rid : linux-x64
24
14
steps :
25
15
- uses : actions/checkout@v4
26
16
- name : Build
27
17
run : |
28
- dotnet build -c Release -r ${{ matrix.rid }} -p:InstallYetAnotherHttpHandler=false
18
+ dotnet build -c Release
29
19
- run : |
30
20
mkdir -p tmp/Plugins
31
- cp -r Plugins/${{ matrix.rid }} tmp/Plugins
21
+ cp -r Plugins tmp/Plugins
22
+ mkdir -p tmp/YetAnotherHttpHandler
23
+ cp -r YetAnotherHttpHandler tmp/YetAnotherHttpHandler
32
24
- uses : actions/upload-artifact@v4
33
25
with :
34
- name : Plugins-${{ matrix.rid }}
26
+ name : Plugins
35
27
path : tmp
36
- install-yetanotherhttphandler :
37
- name : Install YetAnotherHttpHandler
38
- runs-on : ubuntu-latest
39
- steps :
40
- - uses : actions/checkout@v4
41
- - run : dotnet build /t:InstallYetAnotherHttpHandler
42
- - run : |
43
- mkdir -p tmp/YetAnotherHttpHandler
44
- cp -r YetAnotherHttpHandler tmp/YetAnotherHttpHandler
45
- - uses : actions/upload-artifact@v4
46
- with :
47
- name : YetAnotherHttpHandler
48
- path : tmp
49
28
50
29
dispatch :
51
30
runs-on : ubuntu-latest
52
- needs : [ build, install-yetanotherhttphandler ]
31
+ needs : [ build]
53
32
if : github.repository == 'VisualPinball/VisualPinball.Engine.Mpf' && github.ref == 'refs/heads/master' && github.event_name == 'push'
54
33
steps :
55
34
- uses : peter-evans/repository-dispatch@v1
Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v4
11
11
- uses : actions/download-artifact@v4
12
12
with :
13
- merge-multiple : true
14
13
github-token : ${{ secrets.GITHUB_TOKEN }}
15
14
run-id : ${{ github.event.client_payload.artifacts_run_id }}
16
15
- uses : actions/setup-node@v4
Original file line number Diff line number Diff line change 18
18
<Compile Remove =" **/*.cs" />
19
19
</ItemGroup >
20
20
21
- <!-- Specify runtime identifier-->
22
- <PropertyGroup Condition =" '$(RuntimeIdentifier)' == ''" >
23
- <RuntimeIdentifier Condition =" $([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' != 'x86'" >win-x64</RuntimeIdentifier >
24
- <RuntimeIdentifier Condition =" $([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' == 'x86'" >win-x86</RuntimeIdentifier >
25
- <RuntimeIdentifier Condition =" $([MSBuild]::IsOSPlatform('OSX'))" >osx</RuntimeIdentifier >
26
- <RuntimeIdentifier Condition =" $([MSBuild]::IsOSPlatform('Linux'))" >linux-x64</RuntimeIdentifier >
27
- </PropertyGroup >
28
-
29
21
<PropertyGroup >
30
22
<InstallYetAnotherHttpHandler Condition =" '$(InstallYetAnotherHttpHandler)' == ''" >true</InstallYetAnotherHttpHandler >
31
23
</PropertyGroup >
57
49
<ItemGroup >
58
50
<OutputFiles Include =" $(OutDir)/*.*" />
59
51
</ItemGroup >
60
- <Copy SourceFiles =" @(OutputFiles)" DestinationFolder =" ./Plugins/$(RuntimeIdentifier) " SkipUnchangedFiles =" true" />
52
+ <Copy SourceFiles =" @(OutputFiles)" DestinationFolder =" ./Plugins" SkipUnchangedFiles =" true" />
61
53
</Target >
62
54
63
55
<!-- Delete build artifacts-->
You can’t perform that action at this time.
0 commit comments