mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Add arm64 to build action
This commit is contained in:
@@ -13,7 +13,6 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.version.outputs.version }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
date: ${{ steps.version.outputs.date }}
|
date: ${{ steps.version.outputs.date }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- id: version
|
- id: version
|
||||||
@@ -27,10 +26,8 @@ jobs:
|
|||||||
build_dotnet_windows:
|
build_dotnet_windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: set_version
|
needs: set_version
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
@@ -40,9 +37,9 @@ jobs:
|
|||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
cat Version
|
cat Version
|
||||||
- name: Build Cef .NET Application
|
- name: Build Cef .NET Application
|
||||||
run: dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
run: dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
||||||
- name: Build Cef .NET Application
|
- name: Build Cef .NET Application
|
||||||
run: dotnet build DBMerger\DBMerger.csproj -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
run: dotnet build DBMerger\DBMerger.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
||||||
- name: Upload Cef dotnet artifacts
|
- name: Upload Cef dotnet artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -52,10 +49,8 @@ jobs:
|
|||||||
build_dotnet_linux:
|
build_dotnet_linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: set_version
|
needs: set_version
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
@@ -64,21 +59,26 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
cat Version
|
cat Version
|
||||||
- name: Build Electron .NET Application
|
- name: Build Electron x64 .NET Application
|
||||||
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
|
||||||
- name: Upload Electron dotnet artifacts
|
- name: Upload Electron x64 dotnet artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-Release-Linux
|
name: Electron-Release-Linux-x64
|
||||||
|
path: build/Electron
|
||||||
|
- name: Build Electron arm64 .NET Application
|
||||||
|
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=arm64 -p:PlatformTarget=arm64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a arm64 --self-contained
|
||||||
|
- name: Upload Electron arm64 dotnet artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-Release-Linux-arm64
|
||||||
path: build/Electron
|
path: build/Electron
|
||||||
|
|
||||||
build_dotnet_macos:
|
build_dotnet_macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: set_version
|
needs: set_version
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
@@ -87,21 +87,26 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
cat Version
|
cat Version
|
||||||
- name: Build Electron .NET Application
|
- name: Build Electron x64 .NET Application
|
||||||
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
|
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
|
||||||
- name: Upload Electron dotnet artifacts
|
- name: Upload Electron x64 .NET artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-Release-macOS
|
name: Electron-Release-macOS-x64
|
||||||
|
path: build/Electron
|
||||||
|
- name: Build Electron arm64 .NET Application
|
||||||
|
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=arm64 -p:PlatformTarget=arm64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a arm64 --self-contained
|
||||||
|
- name: Upload Electron arm64 dotnet artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-Release-macOS-arm64
|
||||||
path: build/Electron
|
path: build/Electron
|
||||||
|
|
||||||
build_node:
|
build_node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [set_version, build_dotnet_linux]
|
needs: [set_version, build_dotnet_linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: |
|
run: |
|
||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
@@ -122,26 +127,37 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Electron-html
|
- name: Build Electron-html
|
||||||
run: npm run prod-linux
|
run: npm run prod-linux
|
||||||
- name: Download Electron dotnet artifacts
|
- name: Download Electron x64 dotnet artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-Release-Linux
|
name: Electron-Release-Linux-x64
|
||||||
path: build/Electron
|
path: build/Electron
|
||||||
- name: Build AppImage
|
- name: Build x64 AppImage
|
||||||
run: npm run build-electron
|
run: npm run build-electron
|
||||||
- name: Upload Electron AppImage artifacts
|
- name: Upload Electron x64 AppImage artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-AppImage
|
name: Electron-AppImage-x64
|
||||||
path: 'build/VRCX_${{ needs.set_version.outputs.version }}.AppImage'
|
path: 'build/VRCX_${{ needs.set_version.outputs.version }}_x64.AppImage'
|
||||||
|
|
||||||
|
- name: Download Electron arm64 dotnet artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-Release-Linux-arm64
|
||||||
|
path: build/Electron
|
||||||
|
- name: Build arm64 AppImage
|
||||||
|
run: npm run build-electron-arm64
|
||||||
|
- name: Upload Electron arm64 AppImage artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-AppImage-arm64
|
||||||
|
path: 'build/VRCX_${{ needs.set_version.outputs.version }}_arm64.AppImage'
|
||||||
|
|
||||||
build_macos:
|
build_macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: [set_version, build_dotnet_macos]
|
needs: [set_version, build_dotnet_macos]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: |
|
run: |
|
||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
@@ -155,18 +171,36 @@ jobs:
|
|||||||
- name: Build Electron-html
|
- name: Build Electron-html
|
||||||
run: npm run prod-linux --arch=x64
|
run: npm run prod-linux --arch=x64
|
||||||
|
|
||||||
- name: Download Electron dotnet artifacts
|
- name: Download x64 Electron dotnet artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-Release-macOS
|
name: Electron-Release-macOS-x64
|
||||||
path: build/Electron
|
path: build/Electron
|
||||||
- name: Build macOS .dmg
|
- name: Build x64 macOS .dmg
|
||||||
run: npm run build-electron
|
run: npm run build-electron
|
||||||
- name: Upload Electron macOS artifacts
|
- name: Upload x64 Electron macOS artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Electron-MacDmg
|
name: Electron-MacDmg-x64
|
||||||
path: 'build/VRCX_${{ needs.set_version.outputs.version }}.dmg'
|
path: 'build/VRCX_${{ needs.set_version.outputs.version }}_x64.dmg'
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: npm ci --arch=arm64
|
||||||
|
- name: Build Electron-html
|
||||||
|
run: npm run prod-linux --arch=arm64
|
||||||
|
|
||||||
|
- name: Download arm64 Electron dotnet artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-Release-macOS-arm64
|
||||||
|
path: build/Electron
|
||||||
|
- name: Build arm64 macOS .dmg
|
||||||
|
run: npm run build-electron-arm64
|
||||||
|
- name: Upload arm64 Electron macOS artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Electron-MacDmg-arm64
|
||||||
|
path: 'build/VRCX_${{ needs.set_version.outputs.version }}_arm64.dmg'
|
||||||
|
|
||||||
create_setup:
|
create_setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -179,7 +213,6 @@ jobs:
|
|||||||
build_node,
|
build_node,
|
||||||
build_macos
|
build_macos
|
||||||
]
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user