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.
This commit is contained in:
forbes
2026-01-26 12:24:18 -06:00
parent 5bb8b0574b
commit 0760f977d8
2 changed files with 23 additions and 18 deletions

View File

@@ -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

View File

@@ -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"