46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Make MacOS .Net
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
# Building using the github runner environement directly.
|
|
make:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install brew Make
|
|
run: |
|
|
brew install make
|
|
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
|
|
# Install .NET SDKs
|
|
- name: Setup .NET Core 3.1
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 3.1.x
|
|
- name: Setup .NET 6.0
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
- name: Check dotnet
|
|
run: dotnet --info
|
|
- name: Swig install
|
|
run: brew install swig
|
|
- name: Check swig
|
|
run: swig -version
|
|
- name: Check make
|
|
run: make --version
|
|
- name: Check system
|
|
run: make detect_port
|
|
- name: Check .Net
|
|
run: make detect_dotnet
|
|
- name: Build third party
|
|
run: make third_party -j4
|
|
- name: Build C++
|
|
run: make cc -j4
|
|
- name: Build .Net
|
|
run: make dotnet -j4
|
|
- name: Test .Net
|
|
run: make test_dotnet -j4
|
|
- name: Create nuget packages
|
|
run: make package_dotnet
|