From 0760f977d8b124d8722fd7f50c30e93db3683f93 Mon Sep 17 00:00:00 2001 From: forbes Date: Mon, 26 Jan 2026 12:24:18 -0600 Subject: [PATCH] Fix Gitea workflows: use git commands instead of node-based actions The Gitea runner in host mode doesn't have node installed, so we replace the actions/checkout and actions/upload-artifact with direct git/bash commands. --- .gitea/workflows/build.yml | 12 ++++++++---- .gitea/workflows/release.yml | 29 +++++++++++++++-------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index bdcd5b3d2b..f80813ac49 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -25,10 +25,14 @@ jobs: steps: - name: Checkout repository - uses: https://github.com/actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 + shell: bash + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git init + git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" + git fetch origin --depth=1 "$GITHUB_SHA" + git checkout FETCH_HEAD + git submodule update --init --recursive - name: Install pixi if needed shell: bash diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 0823836408..50bf301727 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -30,11 +30,15 @@ jobs: steps: - name: Checkout repository - uses: https://github.com/actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - fetch-tags: true + shell: bash + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git init + git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" + git fetch origin --tags + git fetch origin --depth=1 "$GITHUB_SHA" + git checkout FETCH_HEAD + git submodule update --init --recursive - name: Install pixi if needed shell: bash @@ -65,12 +69,9 @@ jobs: - name: Show ccache statistics run: pixi run ccache -s - - name: Upload AppImage artifact - uses: https://github.com/actions/upload-artifact@v4 - with: - name: kindred-create-linux-x86_64-${{ env.BUILD_TAG }} - path: | - package/rattler-build/linux/*.AppImage - package/rattler-build/linux/*.AppImage.zsync - package/rattler-build/linux/*-SHA256.txt - if-no-files-found: warn + - name: List built artifacts + shell: bash + run: | + echo "Built artifacts:" + ls -lah package/rattler-build/linux/*.AppImage* 2>/dev/null || echo "No AppImage files found" + ls -lah package/rattler-build/linux/*-SHA256.txt 2>/dev/null || echo "No SHA256 files found"