v4.2
This commit is contained in:
@@ -13,16 +13,18 @@ jobs:
|
|||||||
- run: dotnet build
|
- run: dotnet build
|
||||||
- run: dotnet test
|
- run: dotnet test
|
||||||
- run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
|
- run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
|
||||||
- run: |
|
- run: tar cf app.tar app/
|
||||||
mkdir -p artifacts
|
- uses: actions/upload-artifact@v3
|
||||||
tar cf artifacts/app.tar app/
|
with:
|
||||||
outputs:
|
name: app
|
||||||
artifact_path: artifacts/app.tar
|
path: app.tar
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/download-artifact@v3
|
||||||
- run: cp "${{ needs.build.outputs.artifact_path }}" ./app.tar
|
with:
|
||||||
|
name: app
|
||||||
|
- run: ls -R .
|
||||||
- run: tar xf app.tar
|
- run: tar xf app.tar
|
||||||
- run: ./app/app
|
- run: ./app/app
|
||||||
Reference in New Issue
Block a user