mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Update main.yml
This commit is contained in:
parent
648c48acea
commit
17f98c616a
48
.github/workflows/main.yml
vendored
48
.github/workflows/main.yml
vendored
|
|
@ -1,70 +1,48 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
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]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
|
||||
linux:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- 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
|
||||
run: |
|
||||
mono $NUGET_EXE restore
|
||||
run: mono nuget.exe restore
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Build Project
|
||||
run: xbuild TLSharp.Core/TLSharp.Core.csproj
|
||||
macos:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: macos-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download latest NuGet (cross-platform)
|
||||
|
||||
- name: Download latest NuGet
|
||||
uses: olegtarasov/download-nuget@v1
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
mono $NUGET_EXE restore
|
||||
run: mono $NUGET_EXE restore
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Build Project
|
||||
run: MSBuild TLSharp.sln
|
||||
windows:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: windows-latest
|
||||
run: MSBuild TLSharp.Core/TLSharp.Core.csproj
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Nuget.exe
|
||||
uses: warrenbuckley/Setup-Nuget@v1
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
Nuget.exe restore
|
||||
run: Nuget.exe restore
|
||||
|
||||
- name: setup-msbuild
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Build Project
|
||||
run: MSBuild TLSharp.sln
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue