GitHub Actions: simplify .NET workflow artifact management
This commit is contained in:
parent
c6de659a99
commit
02ad50b373
1 changed files with 15 additions and 34 deletions
49
.github/workflows/dotnet.yml
vendored
49
.github/workflows/dotnet.yml
vendored
|
|
@ -92,63 +92,44 @@ jobs:
|
||||||
Release:
|
Release:
|
||||||
needs: [Linux, macOS, Windows]
|
needs: [Linux, macOS, Windows]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: pwsh
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cloning
|
- name: Cloning
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Download Linux arm64 Assets
|
- name: Download Linux arm64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Linux arm64
|
name: Linux arm64
|
||||||
path: assets/linux-arm64
|
path: ${{github.workspace}}/src/dotnet/runtimes/linux-arm64
|
||||||
- name: Download Linux x64 Assets
|
- name: Download Linux x64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Linux x64
|
name: Linux x64
|
||||||
path: assets/linux-x64
|
path: ${{github.workspace}}/src/dotnet/runtimes/linux-x64
|
||||||
- name: Download macOS arm64 Assets
|
- name: Download macOS arm64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: macOS arm64
|
name: macOS arm64
|
||||||
path: assets/osx-arm64
|
path: ${{github.workspace}}/src/dotnet/runtimes/osx-arm64
|
||||||
- name: Download macOS x64 Assets
|
- name: Download macOS x64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: macOS x64
|
name: macOS x64
|
||||||
path: assets/osx-x64
|
path: ${{github.workspace}}/src/dotnet/runtimes/osx-x64
|
||||||
- name: Download Windows arm64 Assets
|
- name: Download Windows arm64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Windows MSVC arm64
|
name: Windows MSVC arm64
|
||||||
path: assets/win-arm64
|
path: ${{github.workspace}}/src/dotnet/runtimes/win-arm64
|
||||||
- name: Download Windows x64 Assets
|
- name: Download Windows x64 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Windows MSVC x64
|
name: Windows MSVC x64
|
||||||
path: assets/win-x64
|
path: ${{github.workspace}}/src/dotnet/runtimes/win-x64
|
||||||
- name: Download Windows x86 Assets
|
- name: Download Windows x86 Artifacts
|
||||||
uses: actions/download-artifact@v6
|
uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Windows MSVC x86
|
name: Windows MSVC x86
|
||||||
path: assets/win-x86
|
path: ${{github.workspace}}/src/dotnet/runtimes/win-x86
|
||||||
- name: Copy Assets
|
|
||||||
run: |
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\linux-arm64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\linux-x64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\osx-arm64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\osx-x64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\win-arm64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\win-x64\native"
|
|
||||||
mkdir -p "${{github.workspace}}\src\dotnet\runtimes\win-x86\native"
|
|
||||||
cp "${{github.workspace}}\assets\linux-arm64\libragephoto.so" "${{github.workspace}}\src\dotnet\runtimes\linux-arm64\native\libragephoto.so"
|
|
||||||
cp "${{github.workspace}}\assets\linux-x64\libragephoto.so" "${{github.workspace}}\src\dotnet\runtimes\linux-x64\native\libragephoto.so"
|
|
||||||
cp "${{github.workspace}}\assets\osx-arm64\libragephoto.dylib" "${{github.workspace}}\src\dotnet\runtimes\osx-arm64\native\libragephoto.dylib"
|
|
||||||
cp "${{github.workspace}}\assets\osx-x64\libragephoto.dylib" "${{github.workspace}}\src\dotnet\runtimes\osx-x64\native\libragephoto.dylib"
|
|
||||||
cp "${{github.workspace}}\assets\win-arm64\libragephoto.dll" "${{github.workspace}}\src\dotnet\runtimes\win-arm64\native\libragephoto.dll"
|
|
||||||
cp "${{github.workspace}}\assets\win-x64\libragephoto.dll" "${{github.workspace}}\src\dotnet\runtimes\win-x64\native\libragephoto.dll"
|
|
||||||
cp "${{github.workspace}}\assets\win-x86\libragephoto.dll" "${{github.workspace}}\src\dotnet\runtimes\win-x86\native\libragephoto.dll"
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v2
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
|
|
@ -161,4 +142,4 @@ jobs:
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: NuGet Package
|
name: NuGet Package
|
||||||
path: ${{github.workspace}}\src\dotnet\bin\${{env.BUILD_TYPE}}\RagePhoto.Core.*.nupkg
|
path: ${{github.workspace}}/src/dotnet/bin/${{env.BUILD_TYPE}}/RagePhoto.Core.*.nupkg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue