From 32fac4d53f5e01f338da98545092e70d2f193c79 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sun, 18 Jan 2026 16:20:05 +0800 Subject: ci(pnpm): remove pnpm version and use corepack instead --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) (limited to '.github/workflows/test.yml') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c7c50c..8232705 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,8 +75,6 @@ jobs: - name: Install pnpm if: github.event_name == 'workflow_dispatch' uses: pnpm/action-setup@v4 - with: - version: latest - name: Install Frontend Dependencies if: github.event_name == 'workflow_dispatch' -- cgit v1.2.3-70-g09d2 From 275612a0a39936584bfef7250a65a6a602751fe9 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sun, 18 Jan 2026 17:11:51 +0800 Subject: ci(workspace): use root path as cwd --- .github/workflows/semifold-ci.yaml | 19 +++++++++---------- .github/workflows/test.yml | 2 -- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to '.github/workflows/test.yml') diff --git a/.github/workflows/semifold-ci.yaml b/.github/workflows/semifold-ci.yaml index fbf38d8..5a08741 100644 --- a/.github/workflows/semifold-ci.yaml +++ b/.github/workflows/semifold-ci.yaml @@ -82,7 +82,6 @@ jobs: - name: Rust Cache uses: swatinem/rust-cache@v2 with: - workspaces: "./src-tauri -> target" shared-key: ${{ matrix.target }} - name: Setup appimagetool (Linux) @@ -128,7 +127,7 @@ jobs: appimagetool squashfs-root "$APPIMAGE" rm -rf squashfs-root fi - working-directory: src-tauri/target/release + working-directory: target/release - name: Upload Artifact (Linux) if: runner.os == 'Linux' && github.event_name == 'workflow_dispatch' @@ -136,9 +135,9 @@ jobs: with: name: dropout-linux-${{ matrix.wayland && 'arch' || 'ubuntu' }}-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/appimage/*.AppImage - src-tauri/target/debug/bundle/deb/*.deb - src-tauri/target/debug/dropout + target/debug/bundle/appimage/*.AppImage + target/debug/bundle/deb/*.deb + target/debug/dropout retention-days: 1 - name: Upload Artifact (Windows) @@ -147,9 +146,9 @@ jobs: with: name: dropout-windows-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/msi/*.msi - src-tauri/target/debug/bundle/nsis/*.exe - src-tauri/target/debug/dropout.exe + target/debug/bundle/msi/*.msi + target/debug/bundle/nsis/*.exe + target/debug/dropout.exe retention-days: 1 - name: Upload Artifact (macOS) @@ -158,8 +157,8 @@ jobs: with: name: dropout-macos-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/dmg/*.dmg - src-tauri/target/debug/bundle/macos/DropOut.app + target/debug/bundle/dmg/*.dmg + target/debug/bundle/macos/DropOut.app retention-days: 1 # release: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8232705..f89dcde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -87,8 +87,6 @@ jobs: - name: Rust Cache uses: swatinem/rust-cache@v2 - with: - workspaces: ./src-tauri - name: Run Tests working-directory: ./src-tauri -- cgit v1.2.3-70-g09d2 From 8e903d97a5bba2d3e67996ba0b1ebe04e96d98ec Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sun, 18 Jan 2026 17:40:57 +0800 Subject: ci(semifold): fix artifact upload conditions --- .github/workflows/semifold-ci.yaml | 52 ++++++++++++++++++++++---------------- .github/workflows/test.yml | 16 ++++++------ 2 files changed, 38 insertions(+), 30 deletions(-) (limited to '.github/workflows/test.yml') diff --git a/.github/workflows/semifold-ci.yaml b/.github/workflows/semifold-ci.yaml index 5a08741..3413b7d 100644 --- a/.github/workflows/semifold-ci.yaml +++ b/.github/workflows/semifold-ci.yaml @@ -25,11 +25,11 @@ jobs: target: "x86_64-unknown-linux-gnu" args: "--target x86_64-unknown-linux-gnu" - platform: "ubuntu-24.04-arm" - name: "Linux Arm64" + name: "Linux arm64" target: "aarch64-unknown-linux-gnu" args: "--target aarch64-unknown-linux-gnu" - platform: "macos-latest" - name: "macOS Arm64" + name: "macOS arm64" target: "aarch64-apple-darwin" args: "--target aarch64-apple-darwin" - platform: "windows-latest" @@ -37,7 +37,7 @@ jobs: target: "x86_64-pc-windows-msvc" args: "--target x86_64-pc-windows-msvc" - platform: "windows-11-arm" - name: "Windows Arm64" + name: "Windows arm64" target: "aarch64-pc-windows-msvc" args: "--target aarch64-pc-windows-msvc" @@ -130,7 +130,7 @@ jobs: working-directory: target/release - name: Upload Artifact (Linux) - if: runner.os == 'Linux' && github.event_name == 'workflow_dispatch' + if: runner.os == 'Linux' uses: actions/upload-artifact@v6 with: name: dropout-linux-${{ matrix.wayland && 'arch' || 'ubuntu' }}-${{ steps.slug.outputs.sha8 }} @@ -141,7 +141,7 @@ jobs: retention-days: 1 - name: Upload Artifact (Windows) - if: runner.os == 'Windows' && github.event_name == 'workflow_dispatch' + if: runner.os == 'Windows' uses: actions/upload-artifact@v6 with: name: dropout-windows-${{ steps.slug.outputs.sha8 }} @@ -152,7 +152,7 @@ jobs: retention-days: 1 - name: Upload Artifact (macOS) - if: runner.os == 'macOS' && github.event_name == 'workflow_dispatch' + if: runner.os == 'macOS' uses: actions/upload-artifact@v6 with: name: dropout-macos-${{ steps.slug.outputs.sha8 }} @@ -161,19 +161,27 @@ jobs: target/debug/bundle/macos/DropOut.app retention-days: 1 - # release: - # name: Release - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v6 - # with: - # fetch-depth: 0 - # - name: Setup Semifold - # uses: noctisynth/setup-semifold@main - # - name: Semifold CI - # run: semifold ci - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - # NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + release: + name: Release + runs-on: ubuntu-latest + needs: [build-tauri] + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Setup Semifold + uses: noctisynth/setup-semifold@main + - name: Download build artifacts + uses: actions/download-artifact@v6 + with: + path: artifacts/ + merge-multiple: true + - name: List artifacts + run: ls -R artifacts/ + # - name: Semifold CI + # run: semifold ci + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f89dcde..402de0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -112,9 +112,9 @@ jobs: with: name: dropout-linux-${{ matrix.wayland && 'arch' || 'ubuntu' }}-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/appimage/*.AppImage - src-tauri/target/debug/bundle/deb/*.deb - src-tauri/target/debug/dropout + target/debug/bundle/appimage/*.AppImage + target/debug/bundle/deb/*.deb + target/debug/dropout retention-days: 5 - name: Upload Artifact (Windows) @@ -123,9 +123,9 @@ jobs: with: name: dropout-windows-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/msi/*.msi - src-tauri/target/debug/bundle/nsis/*.exe - src-tauri/target/debug/dropout.exe + target/debug/bundle/msi/*.msi + target/debug/bundle/nsis/*.exe + target/debug/dropout.exe retention-days: 5 - name: Upload Artifact (macOS) @@ -134,6 +134,6 @@ jobs: with: name: dropout-macos-${{ steps.slug.outputs.sha8 }} path: | - src-tauri/target/debug/bundle/dmg/*.dmg - src-tauri/target/debug/bundle/macos/DropOut.app + target/debug/bundle/dmg/*.dmg + target/debug/bundle/macos/DropOut.app retention-days: 5 -- cgit v1.2.3-70-g09d2