Skip to content

fix: mac上安装sdk用官方脚本 #40

fix: mac上安装sdk用官方脚本

fix: mac上安装sdk用官方脚本 #40

Workflow file for this run

name: test
on:
push:
paths:
- 'llcomNext/**'
- '.github/workflows/test.yml'
pull_request:
paths:
- 'llcomNext/**'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, windows-2022, ubuntu-24.04-arm, macos-13, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up .NET on Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-8.0
- name: Set up .NET on Windows
if: runner.os == 'Windows'
run: choco install dotnet-sdk --version=8.0.407
- name: Set up .NET on macOS
if: runner.os == 'macOS'
run: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0 --install-dir $HOME/.dotnet --no-path
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> $HOME/.bash_profile
echo 'export PATH=$PATH:$HOME/.dotnet' >> $HOME/.bash_profile
source $HOME/.bash_profile
dotnet --version
- name: Test
run: |
cd llcomNext
dotnet test