From a2ec1c147cad874f9bf784a629d51e8956b5e31f Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Sat, 25 Nov 2023 21:51:51 +0900 Subject: [PATCH 1/4] Create net80-console.yml --- .github/workflows/net80-console.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/net80-console.yml diff --git a/.github/workflows/net80-console.yml b/.github/workflows/net80-console.yml new file mode 100644 index 0000000..a3c38a3 --- /dev/null +++ b/.github/workflows/net80-console.yml @@ -0,0 +1,28 @@ +name: .NET 8 Console + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build-net8-console: + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'dotnet/net8.0/consoleapp' + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Restore dependencies + run: dotnet restore --runtime win-x64 + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + From 006dd076347aae3d2dd7682d964d982f52ef39b1 Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Sat, 25 Nov 2023 21:53:50 +0900 Subject: [PATCH 2/4] Update net80-console.yml --- .github/workflows/net80-console.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/net80-console.yml b/.github/workflows/net80-console.yml index a3c38a3..1a194d5 100644 --- a/.github/workflows/net80-console.yml +++ b/.github/workflows/net80-console.yml @@ -25,4 +25,5 @@ jobs: run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal - + - name: Publish + run: dotnet publish --no-build --configuration Release --runtime win-x64 -p:PublishSingleFile=true --self-contained true --output ${{ env.DOTNET_ROOT }}/myapp From e264ab67b583292f9d57457151dd594ebbdd89d4 Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Sat, 25 Nov 2023 21:55:49 +0900 Subject: [PATCH 3/4] Update net80-console.yml --- .github/workflows/net80-console.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/net80-console.yml b/.github/workflows/net80-console.yml index 1a194d5..39cca2b 100644 --- a/.github/workflows/net80-console.yml +++ b/.github/workflows/net80-console.yml @@ -23,7 +23,7 @@ jobs: run: dotnet restore --runtime win-x64 - name: Build run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + # - name: Test + # run: dotnet test --no-build --verbosity normal - name: Publish run: dotnet publish --no-build --configuration Release --runtime win-x64 -p:PublishSingleFile=true --self-contained true --output ${{ env.DOTNET_ROOT }}/myapp From 89d94f22240a6654893ccc1f49fbc44847a3e3d3 Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Sat, 25 Nov 2023 21:58:18 +0900 Subject: [PATCH 4/4] Update net80-console.yml --- .github/workflows/net80-console.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/net80-console.yml b/.github/workflows/net80-console.yml index 39cca2b..94025cc 100644 --- a/.github/workflows/net80-console.yml +++ b/.github/workflows/net80-console.yml @@ -23,7 +23,7 @@ jobs: run: dotnet restore --runtime win-x64 - name: Build run: dotnet build --no-restore - # - name: Test - # run: dotnet test --no-build --verbosity normal + - name: Test + run: dotnet test --no-build --verbosity normal - name: Publish - run: dotnet publish --no-build --configuration Release --runtime win-x64 -p:PublishSingleFile=true --self-contained true --output ${{ env.DOTNET_ROOT }}/myapp + run: dotnet publish --no-build --configuration Release --runtime win-x64 --self-contained true --output ${{ env.DOTNET_ROOT }}/myapp