Преглед изворни кода

ci: 消除 Node 20 与 Homebrew tap warning

将 checkout/setup-node 升到 Node 24 版本,Windows protoc 改用 choco,
macOS 安装前移除 runner 预装的未信任 aws/tap。
darknessomi пре 3 недеља
родитељ
комит
7f9fcd6823
2 измењених фајлова са 12 додато и 10 уклоњено
  1. 7 7
      .github/workflows/build.yml
  2. 5 3
      .github/workflows/ci.yml

+ 7 - 7
.github/workflows/build.yml

@@ -59,7 +59,7 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v5
 
       - name: Install Rust stable
         if: matrix.rust_targets == ''
@@ -78,13 +78,13 @@ jobs:
 
       - name: Install macOS dependencies
         if: runner.os == 'macOS'
-        run: brew install protobuf
+        run: |
+          brew untap aws/tap || true
+          brew install protobuf
 
       - name: Install Windows dependencies
         if: runner.os == 'Windows'
-        uses: arduino/setup-protoc@v3
-        with:
-          repo-token: ${{ secrets.GITHUB_TOKEN }}
+        run: choco install protoc -y
 
       - name: Install Linux dependencies
         if: runner.os == 'Linux'
@@ -93,7 +93,7 @@ jobs:
           sudo apt-get install -y libwebkit2gtk-4.1-dev librsvg2-dev patchelf protobuf-compiler libgtk-3-dev libayatana-appindicator3-dev
 
       - name: Setup Node.js
-        uses: actions/setup-node@v4
+        uses: actions/setup-node@v5
         with:
           node-version: 24
           cache: npm
@@ -268,7 +268,7 @@ jobs:
 
       - name: Upload bundles as workflow artifacts
         if: failure()
-        uses: actions/upload-artifact@v4
+        uses: actions/upload-artifact@v6
         with:
           name: qmai-${{ matrix.label }}
           path: ${{ matrix.artifact_globs }}

+ 5 - 3
.github/workflows/ci.yml

@@ -20,14 +20,16 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v5
 
       - name: Install Rust stable
         uses: dtolnay/rust-toolchain@stable
 
       - name: Install protoc (macOS)
         if: matrix.platform == 'macos-latest'
-        run: brew install protobuf
+        run: |
+          brew untap aws/tap || true
+          brew install protobuf
 
       - name: Install dependencies (Ubuntu)
         if: matrix.platform == 'ubuntu-22.04'
@@ -45,7 +47,7 @@ jobs:
           workspaces: src-tauri
 
       - name: Setup Node.js
-        uses: actions/setup-node@v4
+        uses: actions/setup-node@v5
         with:
           node-version: 24