From f8b35dab6120b6c61cd897320479e8b7106ea72d Mon Sep 17 00:00:00 2001 From: Afshin Arani Date: Thu, 2 Apr 2020 11:40:27 +0430 Subject: [PATCH] GithubActions Workflow for crossplatform CI (#921) AppVeyor only has Windows support on the free tier --- .github/workflows/CI.yml | 50 ++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..1d5ef3d --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,50 @@ +name: CI +on: [push, pull_request] + +env: + NUGET_URL: https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Download latest NuGet + run: wget $NUGET_URL + + - name: Install Dependencies + run: mono nuget.exe restore + + - name: Build Project + run: xbuild TLSharp.Core/TLSharp.Core.csproj + + macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - name: Download latest NuGet + run: curl -o nuget.exe $NUGET_URL + + - name: Install Dependencies + run: mono nuget.exe restore + + - name: Build Project + run: MSBuild TLSharp.Core/TLSharp.Core.csproj + + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + + - name: Download Nuget.exe + run: Invoke-WebRequest -OutFile Nuget.exe $Env:NUGET_URL + + - name: Install Dependencies + run: ./Nuget.exe restore + + - name: setup-msbuild + uses: microsoft/setup-msbuild@v1 + + - name: Build Project + run: MSBuild TLSharp.sln diff --git a/README.md b/README.md index 9d89a90..9c14d3c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ TLSharp ------------------------------- -[![Build status](https://ci.appveyor.com/api/projects/status/95rl618ch5c4h2fa?svg=true)](https://ci.appveyor.com/project/sochix/tlsharp) +![Build status](https://github.com/sochix/TLSharp/workflows/CI/badge.svg) [![NuGet version](https://badge.fury.io/nu/TLSharp.svg)](https://badge.fury.io/nu/TLSharp) _Unofficial_ Telegram (http://telegram.org) client library implemented in C#. Latest TL scheme supported, thanks to Afshin Arani