Skip to content

Commit

Permalink
ci: consolidate build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsm174 committed Jun 5, 2021
1 parent 32e95f4 commit cdc44b8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 38 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/MaterialPatcher.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build
on: [ push, pull_request ]

defaults:
run:
shell: bash

jobs:
build:
name: Build ${{ matrix.app }}-${{ matrix.rid }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { app: VisualPinball.MaterialPatcher, os: windows-latest, rid: win-x64, ext: .exe }
- { app: VisualPinball.MaterialPatcher, os: windows-latest, rid: win-x86, ext: .exe }
- { app: VisualPinball.MaterialPatcher, os: macos-latest, rid: osx-x64 }
- { app: VisualPinball.MaterialPatcher, os: ubuntu-18.04, rid: linux-x64 }
- { app: VisualPinball.TableScript, os: windows-latest, rid: win-x64, ext: .exe }
- { app: VisualPinball.TableScript, os: windows-latest, rid: win-x86, ext: .exe }
- { app: VisualPinball.TableScript, os: macos-latest, rid: osx-x64 }
- { app: VisualPinball.TableScript, os: ubuntu-18.04, rid: linux-x64 }
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Build ${{ matrix.app }}-${{ matrix.rid }}
run: |
cd ${{ matrix.app }}
dotnet publish -r ${{ matrix.rid }} -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.app }}-${{ matrix.rid }}
path: ${{ matrix.app }}/bin/Release/netcoreapp3.1/${{ matrix.rid }}/publish/${{ matrix.app }}${{ matrix.ext }}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>Visual Pinball Engine</Company>
<Product>Material Patcher</Product>
<AssemblyVersion>0.0.3.0</AssemblyVersion>
<FileVersion>0.0.3.0-SNAPSHOT</FileVersion>
<FileVersion>0.0.3.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion VisualPinball.TableScript/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void Main(string[] args)
foreach (var inputFile in inputFiles) {
Console.WriteLine($"Processing \"{inputFile}\"...");

var inputTable = TableLoader.Load(inputFile);
var inputTable = TableLoader.Load(inputFile, false);

var code = inputTable.Data.Code;

Expand Down
2 changes: 1 addition & 1 deletion VisualPinball.TableScript/VisualPinball.TableScript.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>Visual Pinball Engine</Company>
<Product>Table Script</Product>
<AssemblyVersion>0.0.3.0</AssemblyVersion>
<FileVersion>0.0.3.0-SNAPSHOT</FileVersion>
<FileVersion>0.0.3.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit cdc44b8

Please sign in to comment.