Skip to content

support osx-arm64

support osx-arm64 #15

Workflow file for this run

name: dot-net
on:
push:
branches:
- dot-net
tags:
- '*'
concurrency:
group: dot-net-${{ github.ref }}
cancel-in-progress: true
jobs:
build-libs:
name: dot-net for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Check dotnet
run: dotnet --info
- name: build nuget packages
shell: bash
run: |
cd scripts/
./run.sh
ls -lh packages
- uses: actions/upload-artifact@v2
name: upload nuget packages
with:
name: nuget-packages
path: scripts/packages/*.nupkg
- name: publish .Net packages to nuget.org
if: github.repository == 'csukuangfj/PortAudioSharp2'
shell: bash
env:
API_KEY: ${{ secrets.NUGET_API_KEY }}
run: |
# API_KEY is valid until 2024.07.01
cd scripts/packages
dotnet nuget push ./*.nupkg --skip-duplicate --api-key $API_KEY --source https://api.nuget.org/v3/index.json