Skip to content

Commit

Permalink
ci: use nuget in macos
Browse files Browse the repository at this point in the history
ubuntu-latest no longer provides nuget. dotnet cli is not suitable for
us
  • Loading branch information
wang-bin committed Jan 15, 2025
1 parent a2a4ca6 commit 6028e3b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
name: mdk-sdk-macCatalyst-MinSizeRel
- name: Install tools
shell: bash
run: brew install hudochenkov/sshpass/sshpass
run: brew install sshpass
- name: make XCFramework and SDK
shell: bash
run: |
Expand Down Expand Up @@ -717,7 +717,7 @@ jobs:
run: sshpass -p ${SF_PW} scp -o StrictHostKeyChecking=no mdk-sdk-${TARGET_OS}-clang.7z ${SF_USER}@frs.sourceforge.net:/home/frs/project/mdk-sdk/nightly/

NuGet:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [Windows, UWP, Windows_LTL]
steps:
- uses: actions/checkout@v4
Expand All @@ -735,7 +735,9 @@ jobs:
name: mdk-sdk-vs2022-uwp-RelWithDebInfo
- name: update build version
shell: bash
run: sed -i "s,\(.*\.\)[0-9]*\(</version>\),\1${GITHUB_RUN_NUMBER}\2," nuget/mdk.nuspec
run: sed -i .bak "s,\(.*\.\)[0-9]*\(</version>\),\1${GITHUB_RUN_NUMBER}\2," nuget/mdk.nuspec
- name: install tools
run: brew install sshpass nuget 7zip md5sha1sum
- name: Make nupkg (VS2022)
run: |
rm -rf mdk-sdk uwp
Expand All @@ -758,10 +760,7 @@ jobs:
- name: Upload to SourceForge
if: ${{ env.SF_UPLOAD == 'true' }}
shell: bash
run: |
sudo apt update
sudo apt install -y sshpass
make -f upload.mk
run: make -f upload.mk

Linux:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6028e3b

Please sign in to comment.