Compare commits
4 Commits
0c95126806
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
303dcc2e01 | ||
|
|
d68aafafc3 | ||
|
|
b5f8dc6ac0 | ||
|
|
3dc96ddcde |
@@ -4,15 +4,26 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
rid: ["win-x64", "linux-x64"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
- uses: actions/setup-dotnet@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- run: dotnet restore
|
|
||||||
- run: dotnet build
|
|
||||||
|
|
||||||
test:
|
- name: Restore dependencies
|
||||||
steps:
|
run: dotnet restore
|
||||||
- name: trying to run
|
|
||||||
run: dotnet run
|
- name: Publish application
|
||||||
|
run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.rid }}-artifacts
|
||||||
|
path: app
|
||||||
|
|||||||
Reference in New Issue
Block a user