Skip to content

Commit

Permalink
Update dotnet-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Dec 22, 2024
1 parent ee45a35 commit e66facb
Showing 1 changed file with 33 additions and 19 deletions.
52 changes: 33 additions & 19 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e66facb

Please sign in to comment.