mirror of
https://github.com/Smaug123/WoofWare.DotnetRuntimeLocator
synced 2025-10-09 01:08:40 +00:00
Add runtime lookup (#94)
This commit is contained in:
12
.github/workflows/dotnet.yaml
vendored
12
.github/workflows/dotnet.yaml
vendored
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Publish
|
||||
run: dotnet publish Example
|
||||
- name: Run example
|
||||
run: ".\\Example\\bin\\Release\\net8.0\\win-x64\\Example.exe"
|
||||
run: ".\\Example\\bin\\Release\\net8.0\\Example.exe"
|
||||
|
||||
build:
|
||||
strategy:
|
||||
@@ -57,10 +57,14 @@ jobs:
|
||||
run: nix develop --command dotnet build --no-restore --configuration ${{matrix.config}}
|
||||
- name: Test
|
||||
run: nix develop --command dotnet test --no-build --verbosity normal --configuration ${{matrix.config}}
|
||||
- name: Publish example
|
||||
run: nix develop --command dotnet publish --no-build --verbosity normal --configuration ${{matrix.config}} Example
|
||||
- name: Publish example self-contained
|
||||
run: nix develop --command dotnet publish --self-contained --runtime linux-x64 --verbosity normal --configuration ${{matrix.config}} Example
|
||||
- name: Run example self-contained
|
||||
run: "./Example/bin/${{matrix.config}}/*/*/Example"
|
||||
run: "./Example/bin/${{matrix.config}}/net*/*-*/Example"
|
||||
- name: Publish example non-self-contained
|
||||
run: nix develop --command dotnet publish --verbosity normal --configuration ${{matrix.config}} Example
|
||||
- name: Run example non-self-contained
|
||||
run: "./Example/bin/${{matrix.config}}/net*/Example"
|
||||
|
||||
build-nix:
|
||||
runs-on: ubuntu-latest
|
||||
|
Reference in New Issue
Block a user