fix: fix workflow
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
# path: program
|
||||
|
||||
# ZAD 4
|
||||
# name: First CI
|
||||
# on: [push]
|
||||
name: First CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -50,13 +50,32 @@ jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: app.tar
|
||||
- run: ls -R
|
||||
- run: tar xf app.tar
|
||||
- run: ls -R
|
||||
- run: ./app/app
|
||||
|
||||
# ZAD 5
|
||||
# name: First CI
|
||||
# on: [push]
|
||||
|
||||
# jobs:
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# matrix:
|
||||
# r id: ["win-x64", "linux-x64"]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - uses: actions/setup-dotnet@v3
|
||||
# with:
|
||||
# dot net-version: '8.0.x'
|
||||
# - run: dotnet restore
|
||||
# - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
||||
# - run: tar cf app-${{ matrix.rid }}.tar app/
|
||||
# - uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: app-${{ matrix.rid }}.tar
|
||||
|
||||
Reference in New Issue
Block a user