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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user