From 3361e52541361eb961cdaccc01f372fd1a712670 Mon Sep 17 00:00:00 2001 From: le king fu Date: Thu, 26 Feb 2026 18:41:48 -0500 Subject: [PATCH] Fix Forgejo CI: use direct shell commands instead of GitHub Actions Replace dtolnay/rust-toolchain, actions/setup-node, and swatinem/rust-cache with shell commands since they are not mirrored on code.forgejo.org. Use https://github.com/ prefix for checkout action. Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/release.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 5e1d6e0..8f7dd22 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -10,26 +10,24 @@ jobs: runs-on: ubuntu steps: - name: Checkout - uses: actions/checkout@v4 + uses: https://github.com/actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: lts/* - cache: npm - - - name: Setup Rust - uses: dtolnay/rust-toolchain@stable - - - name: Cache Rust dependencies - uses: swatinem/rust-cache@v2 - with: - workspaces: src-tauri + - name: Setup environment + run: | + # Ensure Rust is available + if ! command -v cargo &>/dev/null; then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + fi + source "$HOME/.cargo/env" + rustc --version + cargo --version + node --version + npm --version - name: Install Linux dependencies run: | sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf jq - name: Install frontend dependencies run: npm ci @@ -38,7 +36,9 @@ jobs: env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} - run: npx tauri build + run: | + source "$HOME/.cargo/env" + npx tauri build - name: Collect release files run: |