From 4923f3ba7302ba5c1b074c8b1aad273352e727d8 Mon Sep 17 00:00:00 2001 From: ViR Dash Date: Fri, 10 Jan 2020 18:41:05 +0200 Subject: [PATCH] Replace CI with GitHub --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ appveyor.yml | 17 ----------------- 2 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..8280689c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: [windows-2019] + + steps: + - name: Setup MSBuild.exe + uses: warrenbuckley/Setup-MSBuild@v1 + + - name: Setup Nuget.exe + uses: warrenbuckley/Setup-Nuget@v1 + + - uses: actions/checkout@v1 + - name: Build + run: | + git submodule update --init --recursive + nuget restore de4dot.sln + msbuild de4dot.sln /p:Configuration=Release /m /verbosity:normal /p:WarningLevel=0 + - name: Create ZIP + if: startsWith(github.ref, 'refs/tags/') + run: | + Compress-Archive -Path Release/* -DestinationPath de4dot-cex + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: de4dot-cex.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 2d31be47..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: x.x.{build} -branches: - only: - - master -skip_tags: true -image: Visual Studio 2017 -configuration: Release -install: -- cmd: git submodule update --init --recursive -build_script: -- cmd: >- - appveyor-retry nuget restore de4dot.sln - - msbuild de4dot.sln /p:Configuration=Release /m /verbosity:normal /p:WarningLevel=0 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" -artifacts: -- path: Release/ - name: de4dot \ No newline at end of file