From 0068948facbd14dc30516d2d229d34223ac9a479 Mon Sep 17 00:00:00 2001 From: Aditya Pratap Singh Date: Sun, 10 Apr 2022 01:48:13 +0530 Subject: [PATCH 1/2] Release action added --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e2ba163 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Upload releases + +on: + release: + types: + - created + + +jobs: + build_and_upload: + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v1 + name: Checkout Code + + - name: Setup MSBuild Path + uses: microsoft/setup-msbuild@v1.1 + with: + vs-version: '[16.0,17.0)' + + - name: Setup NuGet + uses: nuget/setup-nuget@v1 + + - name: Restore NuGet Packages + run: nuget restore ccx_testsuite.sln + + - name: Build + run: msbuild ccx_testsuite.sln /t:ccx_testsuite /p:Platform="x86" /p:Configuration=Release + + - name: Prepare artifact upload + run: mkdir ./artifact; cp CCExtractorTester.exe ./artifact/CCExtractorTester.exe; cp testGenerations.dll ./artifact/testGenerations.dll; cp CommandLine.dll ./artifact/CommandLine.dll + working-directory: CCExtractorTester\bin\Release\ + + - name: Archive Release + uses: thedoctor0/zip-release@master + with: + type: 'zip' + directory: 'CCExtractorTester\bin\Release\artifact' + filename: 'CCExtractorTestSuite-${{ github.event.release.tag_name }}.zip' + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + CCExtractorTester\bin\Release\artifact\CCExtractorTestSuite-${{ github.event.release.tag_name }}.zip From 9a73f642dd4a107fa8787efe5c0e5e7df263b521 Mon Sep 17 00:00:00 2001 From: Aditya Pratap Singh Date: Sun, 10 Apr 2022 01:44:49 +0530 Subject: [PATCH 2/2] Build action fixed (cherry picked from commit b5575d52dd8a3a7e23feca7df223885bf515a8c1) --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bd3d29..ec601ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,18 +8,20 @@ on: jobs: build: - runs-on: windows-latest + runs-on: windows-2019 steps: - uses: actions/checkout@v1 name: Checkout Code - name: Setup MSBuild Path - uses: warrenbuckley/Setup-MSBuild@v1 - + uses: microsoft/setup-msbuild@v1.1 + with: + vs-version: '[16.0,17.0)' + - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.2 - + uses: nuget/setup-nuget@v1 + - name: Restore NuGet Packages run: nuget restore ccx_testsuite.sln @@ -30,6 +32,7 @@ jobs: run: mkdir ./artifact; cp CCExtractorTester.exe ./artifact/CCExtractorTester.exe; cp testGenerations.dll ./artifact/testGenerations.dll; cp CommandLine.dll ./artifact/CommandLine.dll working-directory: CCExtractorTester\bin\Release\ + - name: Upload Artifact uses: actions/upload-artifact@v1.0.0 with: