Replace CI with GitHub

This commit is contained in:
ViR Dash 2020-01-10 18:41:05 +02:00
parent c019e21743
commit 4923f3ba73
2 changed files with 34 additions and 17 deletions

34
.github/workflows/main.yml vendored Normal file
View File

@ -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 }}

View File

@ -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