From 1cd95d07fe946a9cda08b42c2d21629291798b58 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 16 Sep 2023 20:09:52 +0800 Subject: [PATCH] =?UTF-8?q?core:=20action=20=E4=BD=BF=E7=94=A8=E4=B8=AD?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 17 +++++++---------- .github/workflows/sync_to_gitee.yaml | 4 ++-- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8e7b122d..c32920481 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,8 @@ -name: test - +name: 运行主程序 on: [push, workflow_dispatch] - jobs: - test: + run: + name: 运行主程序 strategy: fail-fast: false matrix: @@ -15,13 +14,10 @@ jobs: command: ./reinstall.bat --debug runs-on: ${{ matrix.os }} steps: - - name: Disable Git autocrlf - run: | + - run: | git config --global core.autocrlf false - - name: Checkout - uses: actions/checkout@v3 - - name: Run Script - shell: bash # https://github.com/actions/runner-images/issues/6668 + - uses: actions/checkout@v4 + - shell: bash # https://github.com/actions/runner-images/issues/6668 run: | ${{ matrix.command }} centos 7 ${{ matrix.command }} alma-8 @@ -41,6 +37,7 @@ jobs: ${{ matrix.command }} debian --ci ${{ matrix.command }} opensuse ${{ matrix.command }} arch + ${{ matrix.command }} gentoo # 测试失败例子 ! ${{ matrix.command }} wrong-os diff --git a/.github/workflows/sync_to_gitee.yaml b/.github/workflows/sync_to_gitee.yaml index acc5de0e9..b5e7b7e2a 100644 --- a/.github/workflows/sync_to_gitee.yaml +++ b/.github/workflows/sync_to_gitee.yaml @@ -2,10 +2,10 @@ name: 同步到 Gitee on: [push, workflow_dispatch] jobs: sync: + name: 同步到 Gitee runs-on: ubuntu-latest steps: - - name: 同步到 Gitee - uses: Yikun/hub-mirror-action@master + - uses: Yikun/hub-mirror-action@master with: src: github/bin456789 dst: gitee/bin456789