Bläddra i källkod

【修复】修复 GitHub Actions 中的条件表达式

- 将 ${{ matrix.os }} == '操作系统' 替换为 matrix.os == '操作系统'
- 统一条件表达式格式,提高可读性和一致性
PJ568 1 år sedan
förälder
incheckning
0c6f7c3cdd
3 ändrade filer med 6 tillägg och 6 borttagningar
  1. 4 4
      .github/workflows/build-app.yaml
  2. 1 1
      Cargo.lock
  3. 1 1
      Cargo.toml

+ 4 - 4
.github/workflows/build-app.yaml

@@ -47,28 +47,28 @@ jobs:
           node-version: 18
 
       - name: 为 ubuntu-latest 安装 Rust
-        if: ${{ matrix.os }} == 'ubuntu-latest'
+        if: matrix.os == 'ubuntu-latest'
         uses: dtolnay/rust-toolchain@stable
         with:
           toolchain: stable
           target: x86_64-unknown-linux-musl
 
       - name: 为 windows-latest 安装 Rust
-        if: ${{ matrix.os }} == 'windows-latest'
+        if: matrix.os == 'windows-latest'
         uses: dtolnay/rust-toolchain@stable
         with:
           toolchain: stable-x86_64-msvc
           target: x86_64-pc-windows-msvc
 
       - name: 为 macos-latest 安装 Rust
-        if: ${{ matrix.os }} == 'macos-latest'
+        if: matrix.os == 'macos-latest'
         uses: dtolnay/rust-toolchain@stable
         with:
           toolchain: stable
           target: x86_64-apple-darwin
 
       - name: 安装依赖(仅 Ubuntu 需)
-        if: ${{ matrix.os }} == 'ubuntu-24.04'
+        if: matrix.os == 'ubuntu-24.04'
         uses: awalsh128/[email protected]
         with:
           packages: libsoup3.0-dev libdbus-1-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra

+ 1 - 1
Cargo.lock

@@ -2449,7 +2449,7 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
 
 [[package]]
 name = "yaa"
-version = "2.7.3"
+version = "2.7.4"
 dependencies = [
  "actix-cors",
  "actix-web",

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "yaa"
-version = "2.7.3"
+version = "2.7.4"
 edition = "2024"
 
 [dependencies]