mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
GithubActions Workflow for crossplatform CI (#921)
AppVeyor only has Windows support on the free tier
This commit is contained in:
parent
43f16e879e
commit
f8b35dab61
50
.github/workflows/CI.yml
vendored
Normal file
50
.github/workflows/CI.yml
vendored
Normal 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
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
TLSharp
|
TLSharp
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/sochix/tlsharp)
|

|
||||||
[](https://badge.fury.io/nu/TLSharp)
|
[](https://badge.fury.io/nu/TLSharp)
|
||||||
|
|
||||||
_Unofficial_ Telegram (http://telegram.org) client library implemented in C#. Latest TL scheme supported, thanks to Afshin Arani
|
_Unofficial_ Telegram (http://telegram.org) client library implemented in C#. Latest TL scheme supported, thanks to Afshin Arani
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue