Add runtime lookup (#94)

This commit is contained in:
Patrick Stevens
2025-05-16 20:25:40 +01:00
committed by GitHub
parent a013fc415e
commit 1b534018e9
13 changed files with 390 additions and 10 deletions

View File

@@ -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