Update main.yml

This commit is contained in:
Afshin Arani 2020-04-02 10:38:22 +04:30 committed by GitHub
parent 648c48acea
commit 17f98c616a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,70 +1,48 @@
# This is a basic workflow to help you get started with Actions
name: CI Build name: CI Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request] on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
linux: linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Download latest NuGet (cross-platform)
uses: olegtarasov/download-nuget@v1 - name: Download latest NuGet
run: wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- name: Install Dependencies - name: Install Dependencies
run: | run: mono nuget.exe restore
mono $NUGET_EXE restore
# Runs a set of commands using the runners shell
- name: Build Project - name: Build Project
run: xbuild TLSharp.Core/TLSharp.Core.csproj run: xbuild TLSharp.Core/TLSharp.Core.csproj
macos: macos:
# The type of runner that the job will run on
runs-on: macos-latest runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Download latest NuGet (cross-platform)
- name: Download latest NuGet
uses: olegtarasov/download-nuget@v1 uses: olegtarasov/download-nuget@v1
- name: Install Dependencies - name: Install Dependencies
run: | run: mono $NUGET_EXE restore
mono $NUGET_EXE restore
# Runs a set of commands using the runners shell
- name: Build Project - name: Build Project
run: MSBuild TLSharp.sln run: MSBuild TLSharp.Core/TLSharp.Core.csproj
windows:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job windows:
runs-on: windows-latest
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup Nuget.exe - name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1 uses: warrenbuckley/Setup-Nuget@v1
- name: Install Dependencies - name: Install Dependencies
run: | run: Nuget.exe restore
Nuget.exe restore
- name: setup-msbuild - name: setup-msbuild
uses: microsoft/setup-msbuild@v1 uses: microsoft/setup-msbuild@v1
# Runs a set of commands using the runners shell
- name: Build Project - name: Build Project
run: MSBuild TLSharp.sln run: MSBuild TLSharp.sln