Skip to content

Commit cdc44b8

Browse files
committed
ci: consolidate build workflow
1 parent 32e95f4 commit cdc44b8

5 files changed

Lines changed: 39 additions & 38 deletions

File tree

.github/workflows/MaterialPatcher.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
on: [ push, pull_request ]
3+
4+
defaults:
5+
run:
6+
shell: bash
7+
8+
jobs:
9+
build:
10+
name: Build ${{ matrix.app }}-${{ matrix.rid }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- { app: VisualPinball.MaterialPatcher, os: windows-latest, rid: win-x64, ext: .exe }
17+
- { app: VisualPinball.MaterialPatcher, os: windows-latest, rid: win-x86, ext: .exe }
18+
- { app: VisualPinball.MaterialPatcher, os: macos-latest, rid: osx-x64 }
19+
- { app: VisualPinball.MaterialPatcher, os: ubuntu-18.04, rid: linux-x64 }
20+
- { app: VisualPinball.TableScript, os: windows-latest, rid: win-x64, ext: .exe }
21+
- { app: VisualPinball.TableScript, os: windows-latest, rid: win-x86, ext: .exe }
22+
- { app: VisualPinball.TableScript, os: macos-latest, rid: osx-x64 }
23+
- { app: VisualPinball.TableScript, os: ubuntu-18.04, rid: linux-x64 }
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-dotnet@v1
27+
with:
28+
dotnet-version: '3.1.x'
29+
- name: Build ${{ matrix.app }}-${{ matrix.rid }}
30+
run: |
31+
cd ${{ matrix.app }}
32+
dotnet publish -r ${{ matrix.rid }} -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true
33+
- uses: actions/upload-artifact@v2
34+
with:
35+
name: ${{ matrix.app }}-${{ matrix.rid }}
36+
path: ${{ matrix.app }}/bin/Release/netcoreapp3.1/${{ matrix.rid }}/publish/${{ matrix.app }}${{ matrix.ext }}

VisualPinball.MaterialPatcher/VisualPinball.MaterialPatcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Company>Visual Pinball Engine</Company>
88
<Product>Material Patcher</Product>
99
<AssemblyVersion>0.0.3.0</AssemblyVersion>
10-
<FileVersion>0.0.3.0-SNAPSHOT</FileVersion>
10+
<FileVersion>0.0.3.0</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

VisualPinball.TableScript/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void Main(string[] args)
3939
foreach (var inputFile in inputFiles) {
4040
Console.WriteLine($"Processing \"{inputFile}\"...");
4141

42-
var inputTable = TableLoader.Load(inputFile);
42+
var inputTable = TableLoader.Load(inputFile, false);
4343

4444
var code = inputTable.Data.Code;
4545

VisualPinball.TableScript/VisualPinball.TableScript.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Company>Visual Pinball Engine</Company>
88
<Product>Table Script</Product>
99
<AssemblyVersion>0.0.3.0</AssemblyVersion>
10-
<FileVersion>0.0.3.0-SNAPSHOT</FileVersion>
10+
<FileVersion>0.0.3.0</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

0 commit comments

Comments
 (0)