Skip to content

build(deps): bump dawidd6/action-download-artifact in /.github/workflows #270

build(deps): bump dawidd6/action-download-artifact in /.github/workflows

build(deps): bump dawidd6/action-download-artifact in /.github/workflows #270

Workflow file for this run

name: Build
on: [ push, pull_request ]
defaults:
run:
shell: bash
jobs:
build:
name: Build ${{ matrix.rid }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
rid: win-x64
- os: windows-latest
rid: win-x86
- os: macos-latest
rid: osx
- os: macos-latest
rid: ios-arm64
- os: ubuntu-latest
rid: linux-x64
- os: ubuntu-latest
rid: android-arm64-v8a
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Build
run: |
cd VisualPinball.Engine.PinMAME
dotnet build -c Release -r ${{ matrix.rid }}
# - name: Test
# run: |
# cd VisualPinball.Engine.PinMAME.Test
# dotnet run -c Release -r ${{ matrix.rid }}
- run: |
mkdir tmp
cp -r VisualPinball.Engine.PinMAME.Unity/Plugins/${{ matrix.rid }} tmp
- uses: actions/upload-artifact@v3
with:
name: Plugins
path: tmp
dispatch:
runs-on: ubuntu-latest
needs: [ build ]
if: github.repository == 'VisualPinball/VisualPinball.Engine.PinMAME' && github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_PAT }}
event-type: build-complete
client-payload: '{"artifacts_run_id": "${{ github.run_id }}"}'