🎨 Refactoring actions
This commit is contained in:
31
.github/actions/setup-node.yml
vendored
Normal file
31
.github/actions/setup-node.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Setup Node.js Environment
|
||||||
|
description: Install Node.js and pnpm with caching
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
node-version:
|
||||||
|
description: Node.js version to install
|
||||||
|
required: false
|
||||||
|
default: '22'
|
||||||
|
pnpm-version:
|
||||||
|
description: pnpm version to install
|
||||||
|
required: false
|
||||||
|
default: '10.15.0'
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: ${{ inputs.pnpm-version }}
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ inputs.node-version }}
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
shell: bash
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
40
.github/actions/setup-rust-cache.yml
vendored
Normal file
40
.github/actions/setup-rust-cache.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Setup Rust Cache
|
||||||
|
description: Setup Rust dependency caching with restore and save
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
save-cache:
|
||||||
|
description: Whether to save cache after build
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
cache-hit:
|
||||||
|
description: Whether cache was restored successfully
|
||||||
|
value: ${{ steps.cache_restore.outputs.cache-hit }}
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Rust cache restore
|
||||||
|
uses: actions/cache/restore@v4.2.0
|
||||||
|
id: cache_restore
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Rust cache save
|
||||||
|
if: inputs.save-cache == 'true'
|
||||||
|
uses: actions/cache/save@v4.2.0
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
45
.github/actions/setup-rust.yml
vendored
Normal file
45
.github/actions/setup-rust.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Setup Rust Environment
|
||||||
|
description: Install and configure Rust toolchain with platform-specific targets
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
platform:
|
||||||
|
description: Platform to setup Rust for
|
||||||
|
required: true
|
||||||
|
components:
|
||||||
|
description: Additional Rust components to install
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Install Rust for Linux
|
||||||
|
if: contains(inputs.platform, 'ubuntu')
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
components: ${{ inputs.components }}
|
||||||
|
|
||||||
|
- name: Install Rust for Windows
|
||||||
|
if: contains(inputs.platform, 'windows')
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable-x86_64-msvc
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
components: ${{ inputs.components }}
|
||||||
|
|
||||||
|
- name: Install Rust for macOS
|
||||||
|
if: contains(inputs.platform, 'macos')
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: x86_64-apple-darwin
|
||||||
|
components: ${{ inputs.components }}
|
||||||
|
|
||||||
|
- name: Add macOS universal targets
|
||||||
|
if: contains(inputs.platform, 'macos')
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rustup target add aarch64-apple-darwin
|
||||||
|
rustup target add x86_64-apple-darwin
|
||||||
11
.github/actions/setup-ubuntu-deps.yml
vendored
Normal file
11
.github/actions/setup-ubuntu-deps.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
name: Setup Ubuntu Dependencies
|
||||||
|
description: Install system dependencies required for Tauri on Ubuntu
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Install Ubuntu system dependencies
|
||||||
|
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
||||||
|
with:
|
||||||
|
packages: libdbus-1-dev libsoup-3.0-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
|
||||||
|
version: 1.1
|
||||||
21
.github/actions/setup-windows.yml
vendored
Normal file
21
.github/actions/setup-windows.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Setup Windows Environment
|
||||||
|
description: Install WIX Toolset and other Windows-specific dependencies
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Install WIX Toolset
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
# Download and install WIX Toolset v3.11
|
||||||
|
Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311.exe" -OutFile "wix311.exe"
|
||||||
|
Start-Process -FilePath "wix311.exe" -ArgumentList "/quiet" -Wait
|
||||||
|
|
||||||
|
# Add WIX to PATH
|
||||||
|
$wixPath = "${env:ProgramFiles(x86)}\WiX Toolset v3.11\bin"
|
||||||
|
if (Test-Path $wixPath) {
|
||||||
|
echo $wixPath >> $env:GITHUB_PATH
|
||||||
|
echo "WIX Toolset installed successfully"
|
||||||
|
} else {
|
||||||
|
echo "Warning: WIX installation path not found"
|
||||||
|
}
|
||||||
55
.github/workflows/pake-cli.yaml
vendored
55
.github/workflows/pake-cli.yaml
vendored
@@ -1,4 +1,9 @@
|
|||||||
name: Build App With Pake CLI
|
name: Build App With Pake CLI
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: '22'
|
||||||
|
PNPM_VERSION: '10.15.0'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -64,50 +69,20 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Install node
|
- name: Setup Rust Environment
|
||||||
uses: actions/setup-node@v4
|
uses: ./.github/actions/setup-rust.yml
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
platform: ${{ inputs.platform }}
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install Rust for ubuntu-24.04
|
- name: Setup Ubuntu Dependencies
|
||||||
if: inputs.platform == 'ubuntu-24.04'
|
if: contains(inputs.platform, 'ubuntu')
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: ./.github/actions/setup-ubuntu-deps.yml
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-unknown-linux-musl
|
|
||||||
|
|
||||||
- name: Install Rust for windows-latest
|
|
||||||
if: inputs.platform == 'windows-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable-x86_64-msvc
|
|
||||||
target: x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
- name: Install Rust for macos-latest
|
|
||||||
if: inputs.platform == 'macos-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-apple-darwin
|
|
||||||
|
|
||||||
- name: Add additional Rust target for multi-arch
|
|
||||||
if: inputs.platform == 'macos-latest' && inputs.multi_arch == true
|
|
||||||
run: |
|
|
||||||
rustup target add aarch64-apple-darwin
|
|
||||||
|
|
||||||
- name: Install dependencies (ubuntu only)
|
|
||||||
if: inputs.platform == 'ubuntu-24.04'
|
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
|
||||||
with:
|
|
||||||
packages: libsoup-3.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
|
|
||||||
version: 1.1
|
|
||||||
|
|
||||||
- name: Cache Node dependencies
|
- name: Cache Node dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
169
.github/workflows/quality-and-test.yml
vendored
169
.github/workflows/quality-and-test.yml
vendored
@@ -7,6 +7,13 @@ on:
|
|||||||
branches: [main, dev]
|
branches: [main, dev]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: '22'
|
||||||
|
PNPM_VERSION: '10.15.0'
|
||||||
|
UBUNTU_DEPS_VERSION: '1.1'
|
||||||
|
ACTIONS_CHECKOUT_VERSION: 'v4'
|
||||||
|
CACHE_VERSION: 'v4.2.0'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
@@ -19,7 +26,7 @@ jobs:
|
|||||||
auto-format:
|
auto-format:
|
||||||
name: Auto-fix Formatting
|
name: Auto-fix Formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref != 'refs/heads/main' && github.event_name != 'pull_request'
|
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@@ -27,25 +34,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Rust Environment
|
||||||
uses: actions/setup-node@v4
|
uses: ./.github/actions/setup-rust.yml
|
||||||
with:
|
|
||||||
node-version: "22"
|
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Setup Rust
|
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
||||||
with:
|
with:
|
||||||
|
platform: ubuntu-latest
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Auto-fix Prettier formatting
|
- name: Auto-fix Prettier formatting
|
||||||
run: npx prettier --write . --ignore-unknown
|
run: npx prettier --write . --ignore-unknown
|
||||||
@@ -73,20 +73,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "22"
|
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Check EditorConfig compliance
|
- name: Check EditorConfig compliance
|
||||||
uses: editorconfig-checker/action-editorconfig-checker@main
|
uses: editorconfig-checker/action-editorconfig-checker@main
|
||||||
@@ -111,8 +103,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- name: Setup Rust Environment
|
||||||
|
uses: ./.github/actions/setup-rust.yml
|
||||||
with:
|
with:
|
||||||
|
platform: ${{ matrix.os }}
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- uses: rui314/setup-mold@v1
|
- uses: rui314/setup-mold@v1
|
||||||
@@ -122,12 +116,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tool: cargo-hack
|
tool: cargo-hack
|
||||||
|
|
||||||
- name: Install Ubuntu dependencies
|
- name: Setup Ubuntu Dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
uses: ./.github/actions/setup-ubuntu-deps.yml
|
||||||
with:
|
|
||||||
packages: libdbus-1-dev libsoup-3.0-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
|
|
||||||
version: 1.0
|
|
||||||
|
|
||||||
- name: Check Rust formatting
|
- name: Check Rust formatting
|
||||||
run: cargo fmt --all -- --color=always --check
|
run: cargo fmt --all -- --color=always --check
|
||||||
@@ -146,65 +137,25 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Rust Environment
|
||||||
uses: actions/setup-node@v4
|
uses: ./.github/actions/setup-rust.yml
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
platform: ${{ matrix.os }}
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install Rust (Ubuntu)
|
|
||||||
|
- name: Setup Ubuntu Dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: ./.github/actions/setup-ubuntu-deps.yml
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Install Rust (Windows)
|
- name: Setup Windows Environment
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: ./.github/actions/setup-windows.yml
|
||||||
with:
|
|
||||||
toolchain: stable-x86_64-msvc
|
|
||||||
target: x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
- name: Install Rust (macOS)
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-apple-darwin
|
|
||||||
|
|
||||||
- name: Install WIX Toolset (Windows)
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: |
|
|
||||||
# Download and install WIX Toolset v3.11
|
|
||||||
Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311.exe" -OutFile "wix311.exe"
|
|
||||||
Start-Process -FilePath "wix311.exe" -ArgumentList "/quiet" -Wait
|
|
||||||
|
|
||||||
# Add WIX to PATH
|
|
||||||
$wixPath = "${env:ProgramFiles(x86)}\WiX Toolset v3.11\bin"
|
|
||||||
if (Test-Path $wixPath) {
|
|
||||||
echo $wixPath >> $env:GITHUB_PATH
|
|
||||||
echo "WIX Toolset installed successfully"
|
|
||||||
} else {
|
|
||||||
echo "Warning: WIX installation path not found"
|
|
||||||
}
|
|
||||||
shell: powershell
|
|
||||||
|
|
||||||
- name: Install system dependencies (Ubuntu)
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
|
||||||
with:
|
|
||||||
packages: libdbus-1-dev libsoup-3.0-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
|
|
||||||
version: 1.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: pnpm run cli:build
|
run: pnpm run cli:build
|
||||||
@@ -237,38 +188,16 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Rust Environment
|
||||||
uses: actions/setup-node@v4
|
uses: ./.github/actions/setup-rust.yml
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
platform: ${{ matrix.os }}
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install Rust (Ubuntu)
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Install Rust (Windows)
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable-x86_64-msvc
|
|
||||||
target: x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
- name: Install Rust (macOS)
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: x86_64-apple-darwin
|
|
||||||
|
|
||||||
- name: Add macOS targets
|
- name: Add macOS targets
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
@@ -276,15 +205,13 @@ jobs:
|
|||||||
rustup target add aarch64-apple-darwin
|
rustup target add aarch64-apple-darwin
|
||||||
rustup target add x86_64-apple-darwin
|
rustup target add x86_64-apple-darwin
|
||||||
|
|
||||||
- name: Install system dependencies (Ubuntu)
|
- name: Setup Ubuntu Dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
uses: ./.github/actions/setup-ubuntu-deps.yml
|
||||||
with:
|
|
||||||
packages: libdbus-1-dev libsoup-3.0-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
|
|
||||||
version: 1.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Setup Windows Environment
|
||||||
run: pnpm install --frozen-lockfile
|
if: matrix.os == 'windows-latest'
|
||||||
|
uses: ./.github/actions/setup-windows.yml
|
||||||
|
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: pnpm run cli:build
|
run: pnpm run cli:build
|
||||||
|
|||||||
38
.github/workflows/single-app.yaml
vendored
38
.github/workflows/single-app.yaml
vendored
@@ -1,4 +1,9 @@
|
|||||||
name: Build Single Popular App
|
name: Build Single Popular App
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: '22'
|
||||||
|
PNPM_VERSION: '10.15.0'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -72,24 +77,15 @@ jobs:
|
|||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup Node.js Environment
|
||||||
uses: pnpm/action-setup@v4
|
uses: ./.github/actions/setup-node.yml
|
||||||
with:
|
with:
|
||||||
version: 10.15.0
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
run_install: false
|
pnpm-version: ${{ env.PNPM_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Ubuntu Dependencies
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install dependencies (ubuntu only)
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
|
uses: ./.github/actions/setup-ubuntu-deps.yml
|
||||||
with:
|
|
||||||
packages: libdbus-1-dev libsoup-3.0-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
|
|
||||||
version: 1.1
|
|
||||||
|
|
||||||
- name: Rust cache restore
|
- name: Rust cache restore
|
||||||
uses: actions/cache/restore@v4.2.0
|
uses: actions/cache/restore@v4.2.0
|
||||||
@@ -109,15 +105,7 @@ jobs:
|
|||||||
TITLE: ${{ inputs.title }}
|
TITLE: ${{ inputs.title }}
|
||||||
NAME_ZH: ${{ inputs.name_zh }}
|
NAME_ZH: ${{ inputs.name_zh }}
|
||||||
URL: ${{ inputs.url }}
|
URL: ${{ inputs.url }}
|
||||||
run: |
|
run: pnpm run build:config
|
||||||
pnpm install --frozen-lockfile
|
|
||||||
pnpm run build:config
|
|
||||||
|
|
||||||
- name: Add Rust targets for macOS universal build
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
run: |
|
|
||||||
rustup target add aarch64-apple-darwin
|
|
||||||
rustup target add x86_64-apple-darwin
|
|
||||||
|
|
||||||
- name: Build for Linux
|
- name: Build for Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
@@ -172,7 +160,7 @@ jobs:
|
|||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1 # cspell:disable-line
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|||||||
Reference in New Issue
Block a user