GithubActions Workflow for crossplatform CI (#921)

AppVeyor only has Windows support on the free tier
This commit is contained in:
Afshin Arani 2020-04-02 11:40:27 +04:30 committed by GitHub
parent 43f16e879e
commit f8b35dab61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 1 deletions

50
.github/workflows/CI.yml vendored Normal file
View file

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

View file

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