Update ci.yml
This commit is contained in:
@@ -5,24 +5,18 @@ on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
rid: ["win-x64", "linux-x64"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '9.0.x'
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- run: dotnet restore
|
||||
- run: dotnet build
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '9.0.x'
|
||||
|
||||
- name: trying to run
|
||||
run: dotnet run
|
||||
- run: dotnet publish -o app -r ${{ matrix.rid }} --self-contained true /p:PublishSingleFile=true
|
||||
|
||||
Reference in New Issue
Block a user