UPD: ci.yml
This commit is contained in:
@@ -2,15 +2,28 @@ name: First CI
|
||||
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: '8.0.x'
|
||||
- run: dotnet restore
|
||||
- run: dotnet publish ./Lab7.csproj -c Release -o app -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
|
||||
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: '8.0.x'
|
||||
|
||||
- run: dotnet restore
|
||||
|
||||
- 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