gitea step

This commit is contained in:
alex 2026-07-15 10:54:16 +08:00
parent 8f7752018b
commit 9a57fa9051

View File

@ -13,14 +13,16 @@ jobs:
build: build:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: Add Path
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "$HOME/tools/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
- name: TAG推送自动编译 - name: TAG推送自动编译
id: compile id: compile
shell: bash shell: bash
working-directory: /usr/local/gitea-workflow/workspace/sdlan-lib-rs working-directory: /usr/local/gitea-workflow/workspace/sdlan-lib-rs
run: | run: |
flock -n build.lock -c ' flock -n build.lock -c '
echo "$HOME/.cargo/bin" >> $GITEA_PATH
echo "$HOME/tools/aarch64-linux-musl-cross/bin" >> $GITEA_PATH
git pull git pull
rm -rf /usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/x86_64-unknown-linux-musl/debian/*.deb || true rm -rf /usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/x86_64-unknown-linux-musl/debian/*.deb || true
rm -rf /usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/aarch64-unknown-linux-musl/debian/*.deb || true rm -rf /usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/aarch64-unknown-linux-musl/debian/*.deb || true