From 9889d97aec78639aafe0bee94d34d83acf2ef7fb Mon Sep 17 00:00:00 2001 From: Sora <45709238+sorabug@users.noreply.github.com> Date: Sun, 16 Apr 2023 08:46:55 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..80194b5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Build ChangeTimestamp + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: windows-latest + + strategy: + matrix: + configuration: [Release] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Use .NET Framework version 4.0 + uses: microsoft/setup-msbuild@v1.0.2 + with: + dotnet-version: '4.0' + + - name: Restore NuGet packages + run: nuget restore ChangeTimestamp.sln + + - name: Build solution + run: msbuild.exe ChangeTimestamp.sln /t:Build /p:Configuration=${{ matrix.configuration }}