Skip to content

Commit

Permalink
Test Multiple Runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxlider authored Mar 29, 2024
1 parent 1db114b commit fce08a2
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ jobs:

strategy:
matrix:
configuration: [Release]
runtime: [x64, x86]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

env:
Configuration: Release
Solution_Name: FASTER # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: FASTERTests\FASTERTests.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
Wap_Project_Directory: FASTER # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
Expand Down Expand Up @@ -83,43 +84,25 @@ jobs:

# Build
- name: Build the application
run: dotnet build --configuration $env:Configuration ./FASTER/FASTER.csproj
run: dotnet build --configuration $env:Configuration -a $env:Runtime./FASTER/FASTER.csproj
env:
Configuration: ${{ matrix.configuration }}
Runtime: ${{ matrix.runtime }}

# Pub
- name: Publish the application x64
run: dotnet publish --configuration $env:Configuration -r win-x64 --self-contained true /p:useapphost=true --output .\Release_Nightly_x64 ./FASTER/FASTER.csproj
run: dotnet publish --configuration $env:Configuration -a $env:Runtime --self-contained true /p:useapphost=true --output .\Release_Nightly_$env:Runtime ./FASTER/FASTER.csproj
env:
Configuration: ${{ matrix.configuration }}
#- name: Publish the application x86
# run: dotnet publish --configuration $env:Configuration -r win-x86 --self-contained true /p:useapphost=true --output .\Release_Nightly_x86
# env:
# Configuration: ${{ matrix.configuration }}

- name: Zip Release x64
uses: TheDoctor0/[email protected]
with:
# Filename for archive
filename: nightly_x64.zip
# Base path for archive files
path: .\Release_Nightly_x64

#- name: Zip Release x86
# uses: TheDoctor0/[email protected]
# with:
# # Filename for archive
# filename: nightly_x86.zip
# # Base path for archive files
# path: .\Release_Nightly_x86

Runtime: ${{ matrix.runtime }}


# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.1
with:
name: Nightly Zip Package
path: nightly_x64.zip
name: Release_Nightly_$env:Runtime
path: .\Release_Nightly_$env:Runtime
env:
Runtime: ${{ matrix.runtime }}

# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
#- name: Upload build artifacts
Expand Down

0 comments on commit fce08a2

Please sign in to comment.