Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
rid: osx
- os: macos-latest
rid: ios-arm64
- os: ubuntu-latest
- os: ubuntu-22.04
rid: linux-x64
- os: ubuntu-latest
- os: ubuntu-22.04
rid: android-arm64-v8a
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
- name: Build
Expand All @@ -41,17 +41,17 @@ jobs:
- run: |
mkdir tmp
cp -r VisualPinball.Engine.PinMAME.Unity/Plugins/${{ matrix.rid }} tmp
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Plugins
name: Plugins-${{ matrix.rid }}
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
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
event-type: build-complete
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ on:
types: [ release-complete ]

jobs:
registry:
publish-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dawidd6/action-download-artifact@v2
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
workflow: build
run_id: ${{ github.event.client_payload.artifacts_run_id }}
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.client_payload.artifacts_run_id }}
path: VisualPinball.Engine.PinMAME.Unity
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.visualpinball.org'
- name: Publish
run: |
cd VisualPinball.Engine.PinMAME.Unity
echo "//registry.visualpinball.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch next version
Expand All @@ -31,7 +31,7 @@ jobs:
git commit -m "release: ${{ steps.nextVersion.outputs.nextTag }}."
git push
commitish=$(git rev-parse HEAD)
echo ::set-output name=commitish::${commitish}
echo "commitish=${commitish}" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
Expand All @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- uses: peter-evans/repository-dispatch@v1
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
event-type: release-complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Linux'))">linux-x64</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="PinMame" Version="0.2.0-preview.8" />
<PackageReference Include="PinMame" Version="0.2.0-preview.9" />
<PackageReference Include="PinMame.Native" Version="3.5.0-preview.79" />
<PackageReference Include="VisualPinball.Engine" Version="0.0.1-preview.105" />
<!-- Uncomment when doing local dev -->
Expand All @@ -26,10 +26,10 @@
<Plugins Include="$(OutDir)PinMame.dll" />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'ios-arm64'">
<Plugins Include="$(NuGetPackageRoot)\pinmame\0.2.0-preview.7\runtimes\ios\lib\netstandard2.1\PinMame.dll" />
<Plugins Include="$(NuGetPackageRoot)\pinmame\0.2.0-preview.9\runtimes\ios\lib\netstandard2.1\PinMame.dll" />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'android-arm64-v8a'">
<Plugins Include="$(NuGetPackageRoot)\pinmame\0.2.0-preview.7\runtimes\android\lib\netstandard2.1\PinMame.dll" />
<Plugins Include="$(NuGetPackageRoot)\pinmame\0.2.0-preview.9\runtimes\android\lib\netstandard2.1\PinMame.dll" />
</ItemGroup>
<ItemGroup>
<Plugins Include="$(OutDir)$(AssemblyName).dll" />
Expand Down