diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec601ac..4bd3d29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,20 +8,18 @@ on: jobs: build: - runs-on: windows-2019 + runs-on: windows-latest 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)' - + uses: warrenbuckley/Setup-MSBuild@v1 + - name: Setup NuGet - uses: nuget/setup-nuget@v1 - + uses: NuGet/setup-nuget@v1.0.2 + - name: Restore NuGet Packages run: nuget restore ccx_testsuite.sln @@ -32,7 +30,6 @@ 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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f179cd2..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,39 +0,0 @@ -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: Upload as asset - uses: AButler/upload-release-assets@v2.0 - with: - files: 'CCExtractorTester\bin\Release\artifact\*' - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file