Skip to content

chore: changed dirs #448

chore: changed dirs

chore: changed dirs #448

Workflow file for this run

name: dotnet build
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
runner:
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: dotnet build
run: dotnet build ./src/dotnet -c Debug
- name: dotnet test
run: dotnet test ./src/dotnet -c Debug --logger GitHubActions --logger "console;verbosity=normal"
- name: dotnet publish
run: dotnet publish ./src/dotnet -c Debug
- uses: actions/upload-artifact@v4
with:
name: dotnet-console
path: ./src/dotnet/artifacts/publish/Sandbox.Console/
retention-days: 1
container:
runs-on: ubuntu-24.04
timeout-minutes: 3
container:
image: mcr.microsoft.com/dotnet/sdk:8.0
steps:
- uses: actions/checkout@v4
- name: dotnet build
run: dotnet build ./src/dotnet -c Debug
- name: dotnet test
run: dotnet test ./src/dotnet -c Debug --logger GitHubActions --logger "console;verbosity=normal"
- name: dotnet publish
run: dotnet publish ./src/dotnet -c Debug -o ./out/dotnet-console-container
- uses: actions/upload-artifact@v4
with:
name: dotnet-container
path: ./out/dotnet-console-container/
retention-days: 1
ls:
needs: [runner, container]
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
- uses: actions/download-artifact@v4
- run: ls -lR
# zip up files
- run: zip -r Sandbox.Console.zip ./dotnet-console
- run: zip -r dotnet-console-container.zip ./dotnet-container