From e66facbbb5fde347f646f6f2bb8bbc921d663fd4 Mon Sep 17 00:00:00 2001 From: Color_yr <402067010@qq.com> Date: Sun, 22 Dec 2024 16:14:43 +0800 Subject: [PATCH] Update dotnet-build.yml --- .github/workflows/dotnet-build.yml | 52 +++++++++++++++++++----------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 0d0e8b442..4d1b012b5 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -13,7 +13,12 @@ jobs: build-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: 'true' + token: ${{ secrets.KEY1 }} + - name: 设置.NET Core uses: actions/setup-dotnet@v4 with: @@ -27,12 +32,12 @@ jobs: MAINVERSION=$(cat ./build/main_version) echo "MAINVERSION=$MAINVERSION" >> $GITHUB_ENV - - name: 更新源码 - shell: bash - working-directory: ./ - run: | - chmod a+x ./build/update.sh - ./build/update.sh + # - name: 更新源码 + # shell: bash + # working-directory: ./ + # run: | + # chmod a+x ./build/update.sh + # ./build/update.sh - name: 构建源码 shell: bash @@ -177,7 +182,12 @@ jobs: build-macos: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: 'true' + token: ${{ secrets.KEY1 }} + - name: 设置.NET Core uses: actions/setup-dotnet@v4 with: @@ -191,12 +201,12 @@ jobs: MAINVERSION=$(cat ./build/main_version) echo "MAINVERSION=$MAINVERSION" >> $GITHUB_ENV - - name: 更新源码 - shell: bash - working-directory: ./ - run: | - chmod a+x ./build/update.sh - ./build/update.sh + # - name: 更新源码 + # shell: bash + # working-directory: ./ + # run: | + # chmod a+x ./build/update.sh + # ./build/update.sh - name: 构建 shell: bash @@ -232,7 +242,11 @@ jobs: build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: 'true' + token: ${{ secrets.KEY1 }} - name: Read version number id: version @@ -247,10 +261,10 @@ jobs: with: dotnet-version: 8.0.404 - - name: 更新源码 - shell: cmd - working-directory: ./ - run: ./build/update.cmd + # - name: 更新源码 + # shell: cmd + # working-directory: ./ + # run: ./build/update.cmd - name: 构建 源码 shell: cmd