Compare commits
5 Commits
459e29b97d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c380e85691 | ||
|
|
2ca3357f1b | ||
|
|
5b5578c111 | ||
|
|
acdad02cab | ||
|
|
cb1cf790b4 |
@@ -4,14 +4,18 @@ 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
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3
|
- uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- run: dotnet restore
|
- run: dotnet restore
|
||||||
- run: dotnet build
|
- run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
|
||||||
test:
|
- run: tar cf app=${{ matrix.rid }}.tar app/
|
||||||
steps:
|
- uses: actions/upload-artifact@v3
|
||||||
- name: trying to run
|
with:
|
||||||
run: dotnet run
|
name: app-${{ matrix.rid }}.tar
|
||||||
|
path: app-${{ matrix.rid }}.tar
|
||||||
Reference in New Issue
Block a user