Update ci.yml

This commit is contained in:
Gustave Monce
2024-09-15 14:48:52 +02:00
parent 020d2d3423
commit 10050ec05e
+12 -10
View File
@@ -25,39 +25,41 @@ jobs:
architecture: arm64 architecture: arm64
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install .NET SDK - name: Install .NET SDK
uses: actions/setup-dotnet@v4.0.0 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: "8.0.x" dotnet-version: "8.0.x"
- name: Add MSBuild to PATH - name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.3.1 uses: microsoft/setup-msbuild@v2
- name: Build utilities - name: Build Utilities
shell: pwsh shell: pwsh
run: | run: |
msbuild /m /t:restore,ffu2vhdx:publish /p:Platform=${{ matrix.architecture }} /p:RuntimeIdentifier=${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishDir=${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishSingleFile=true /p:PublishTrimmed=false /p:Configuration=Release Ffu2Vhdx.sln msbuild /m /t:restore,ffu2vhdx:publish /p:Platform=${{ matrix.architecture }} /p:RuntimeIdentifier=${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishDir=${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishSingleFile=true /p:PublishTrimmed=false /p:Configuration=Release /p:IncludeNativeLibrariesForSelfExtract=true Ffu2Vhdx.sln
- name: Create PDB Output Directory - name: Create PDB Output Directory
shell: pwsh shell: pwsh
run: | run: |
mkdir ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}\PDBs mkdir ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}-symbols
- name: Move PDBs - name: Move PDBs
shell: pwsh shell: pwsh
run: | run: |
move ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}\*.pdb ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}\PDBs\ move ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}\*.pdb ${{ github.workspace }}\artifacts\${{ matrix.platform }}-${{ matrix.architecture }}-symbols
- name: Upload artifact (Binaries) - name: Upload artifact (Binaries)
uses: actions/upload-artifact@v3.1.3 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.platform }}-${{ matrix.architecture }}-binaries name: ${{ matrix.platform }}-${{ matrix.architecture }}-binaries
path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }}
- name: Upload artifact (Symbols) - name: Upload artifact (Symbols)
uses: actions/upload-artifact@v3.1.3 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.platform }}-${{ matrix.architecture }}-symbols name: ${{ matrix.platform }}-${{ matrix.architecture }}-symbols
path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }}\PDBs path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }}-symbols