Skip to content

Commit df94f38

Browse files
committed
fix: mac上安装sdk用官方脚本
1 parent a6f75d3 commit df94f38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-24.04, windows-2022, ubuntu-24.04-arm, macos-13, macos-14]
18+
fail-fast: false
1819
runs-on: ${{ matrix.os }}
1920
steps:
2021
- uses: actions/checkout@v4
@@ -34,10 +35,10 @@ jobs:
3435
- name: Set up .NET on macOS
3536
if: runner.os == 'macOS'
3637
run: |
37-
brew update
38-
brew install --cask dotnet-sdk@8
39-
export DOTNET_ROOT=$(brew --prefix)/opt/dotnet-sdk
40-
export PATH=$DOTNET_ROOT/bin:$PATH
38+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0 --install-dir $HOME/.dotnet --no-path
39+
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> $HOME/.bash_profile
40+
echo 'export PATH=$PATH:$HOME/.dotnet' >> $HOME/.bash_profile
41+
source $HOME/.bash_profile
4142
dotnet --version
4243
4344
- name: Test

0 commit comments

Comments
 (0)