|
| 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 }} |
0 commit comments