UPD: ci.yml
This commit is contained in:
@@ -9,8 +9,21 @@ jobs:
|
|||||||
rid: ["win-x64", "linux-x64"]
|
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 publish ./Lab7.csproj -c Release -o app -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
|
|
||||||
|
- name: Publish for ${{ matrix.rid }}
|
||||||
|
run: dotnet publish ./lab2/Lab7.csproj -c Release -o app-${{ matrix.rid }} -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
|
||||||
|
|
||||||
|
- name: Archive artifact
|
||||||
|
run: tar cf app-${{ matrix.rid }}.tar app-${{ matrix.rid }}/
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: app-${{ matrix.rid }}
|
||||||
|
path: app-${{ matrix.rid }}.tar
|
||||||
|
|||||||
Reference in New Issue
Block a user