|
@@ -47,28 +47,28 @@ jobs:
|
|
|
node-version: 18
|
|
node-version: 18
|
|
|
|
|
|
|
|
- name: 为 ubuntu-latest 安装 Rust
|
|
- name: 为 ubuntu-latest 安装 Rust
|
|
|
- if: inputs.platform == 'ubuntu-latest'
|
|
|
|
|
|
|
+ if: ${{ matrix.os }} == 'ubuntu-latest'
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
with:
|
|
with:
|
|
|
toolchain: stable
|
|
toolchain: stable
|
|
|
target: x86_64-unknown-linux-musl
|
|
target: x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
- name: 为 windows-latest 安装 Rust
|
|
- name: 为 windows-latest 安装 Rust
|
|
|
- if: inputs.platform == 'windows-latest'
|
|
|
|
|
|
|
+ if: ${{ matrix.os }} == 'windows-latest'
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
with:
|
|
with:
|
|
|
toolchain: stable-x86_64-msvc
|
|
toolchain: stable-x86_64-msvc
|
|
|
target: x86_64-pc-windows-msvc
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
|
|
|
|
- name: 为 macos-latest 安装 Rust
|
|
- name: 为 macos-latest 安装 Rust
|
|
|
- if: inputs.platform == 'macos-latest'
|
|
|
|
|
|
|
+ if: ${{ matrix.os }} == 'macos-latest'
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
with:
|
|
with:
|
|
|
toolchain: stable
|
|
toolchain: stable
|
|
|
target: x86_64-apple-darwin
|
|
target: x86_64-apple-darwin
|
|
|
|
|
|
|
|
- name: 安装依赖(仅 Ubuntu 需)
|
|
- name: 安装依赖(仅 Ubuntu 需)
|
|
|
- if: inputs.platform == 'ubuntu-24.04'
|
|
|
|
|
|
|
+ if: ${{ matrix.os }} == 'ubuntu-24.04'
|
|
|
uses: awalsh128/[email protected]
|
|
uses: awalsh128/[email protected]
|
|
|
with:
|
|
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
|
|
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
|
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/registry/cache/
|
|
|
~/.cargo/git/db/
|
|
~/.cargo/git/db/
|
|
|
node_modules/pake-cli/src-tauri/target/
|
|
node_modules/pake-cli/src-tauri/target/
|
|
|
- key: ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
|
|
|
|
|
|
+ key: ${{ matrix.os }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
|
|
|
|
|
|
|
- name: 安装依赖
|
|
- name: 安装依赖
|
|
|
run: |
|
|
run: |
|
|
@@ -115,7 +115,7 @@ jobs:
|
|
|
- name: 上传包
|
|
- name: 上传包
|
|
|
uses: actions/upload-artifact@v4
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
with:
|
|
|
- name: output-${{ inputs.platform }}.zip
|
|
|
|
|
|
|
+ name: output-${{ matrix.os }}.zip
|
|
|
path: node_modules/pake-cli/output/*
|
|
path: node_modules/pake-cli/output/*
|
|
|
retention-days: 3
|
|
retention-days: 3
|
|
|
|
|
|
|
@@ -129,4 +129,4 @@ jobs:
|
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/registry/cache/
|
|
|
~/.cargo/git/db/
|
|
~/.cargo/git/db/
|
|
|
node_modules/pake-cli/src-tauri/target/
|
|
node_modules/pake-cli/src-tauri/target/
|
|
|
- key: ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
|
|
|
|
|
|
+ key: ${{ matrix.os }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|