From e69dfe3a5aee1d7851c1ba5273369d02280e9569 Mon Sep 17 00:00:00 2001 From: moreal Date: Mon, 31 Jul 2023 16:52:29 +0900 Subject: [PATCH] chore: update csproj for publishing as single file --- .Lib9c.StateService/Lib9c.StateService.csproj | 5 ++++- .github/workflows/main.yml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.Lib9c.StateService/Lib9c.StateService.csproj b/.Lib9c.StateService/Lib9c.StateService.csproj index f4385886e6..b9ecc6c46f 100644 --- a/.Lib9c.StateService/Lib9c.StateService.csproj +++ b/.Lib9c.StateService/Lib9c.StateService.csproj @@ -3,13 +3,16 @@ net6.0 enable + Exe + true + true enable - + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc2b021b94..f888fe0bbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: - name: Install dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore --configuration ${{ matrix.configuration }} + run: dotnet build -r linux-x64 --no-restore --configuration ${{ matrix.configuration }} - name: Test run: dotnet test --no-restore --verbosity normal --configuration ${{ matrix.configuration }} @@ -69,7 +69,7 @@ jobs: sed -i -E 's|\[MaybeNullWhen\(false\)] out TValue value|out TValue value|' Lib9c/TableData/Sheet.cs sed -i -E 's|public bool TryGetValue\(TKey key, out TValue value, bool throwException\)|public bool TryGetValue\(TKey key, out TValue? value, bool throwException\)|' Lib9c/TableData/Sheet.cs - name: build - run: dotnet build + run: dotnet build -r linux-x64 release: if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')