mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00: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
2 changed files with 51 additions and 1 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue