Compare commits

...

13 Commits

Author SHA1 Message Date
8f7752018b GITEA_PATH
Some checks failed
sdlan release push / build (push) Has been cancelled
2026-07-15 10:51:16 +08:00
02188bb6ee added path 2026-07-15 10:48:31 +08:00
e77aef435a echo PATH 2026-07-15 10:31:39 +08:00
d68ecdcdad bash 2026-07-15 10:20:26 +08:00
a16c640ff1 test uses bash 2026-07-14 14:56:35 +08:00
5ce7fe4cdd source bash 2026-07-14 14:50:54 +08:00
1456e492df uses 2026-07-14 14:35:36 +08:00
326697849b chagne name 2026-07-14 14:15:53 +08:00
fc34c3e433 changed action-gh-release 2026-07-14 13:50:20 +08:00
4f520c8456 uses bash 2026-07-14 13:44:44 +08:00
f736736432 pull firstly 2026-07-14 13:40:57 +08:00
946c0e59de added workflow 2026-07-14 13:23:14 +08:00
4e391d9a49 workflow 2026-07-13 11:32:34 +08:00
5 changed files with 50 additions and 4 deletions

View File

@ -0,0 +1,43 @@
name: sdlan release push
run-name: ${{ gitea.actor }} is building release 🚀
on:
push:
tags:
- '*'
defaults:
run:
shell: bash --login -eo pipefail {0}
jobs:
build:
runs-on: self-hosted
steps:
- name: TAG推送自动编译
id: compile
shell: bash
working-directory: /usr/local/gitea-workflow/workspace/sdlan-lib-rs
run: |
flock -n build.lock -c '
echo "$HOME/.cargo/bin" >> $GITEA_PATH
echo "$HOME/tools/aarch64-linux-musl-cross/bin" >> $GITEA_PATH
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/aarch64-unknown-linux-musl/debian/*.deb || true
cargo deb --target x86_64-unknown-linux-musl --deb-revision="2-static"
cargo deb --target aarch64-unknown-linux-musl --deb-revision="2-static"
echo "built=true" >> $GITHUB_OUTPUT
' || {
echo "其他编译正在进行中,跳过本次执行"
echo "built=false" >> $GITHUB_OUTPUT
exit 0
}
- name: Upload Release Assets
if: steps.compile.outputs.built == 'true'
#uses: softprops/action-gh-release@v3
uses: workflow-actions/action-gh-release@v3
with:
files: |
/usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/x86_64-unknown-linux-musl/debian/*.deb
/usr/local/gitea-workflow/workspace/sdlan-lib-rs/target/aarch64-unknown-linux-musl/debian/*.deb

3
.gitignore vendored
View File

@ -15,4 +15,5 @@ sdlan.exe
/ca
.access_token
.host
.config
.config
build.lock

2
Cargo.lock generated
View File

@ -2343,7 +2343,7 @@ dependencies = [
[[package]]
name = "punchnet"
version = "1.2.6"
version = "1.2.7"
dependencies = [
"ahash",
"arc-swap",

View File

@ -1,6 +1,6 @@
[package]
name = "punchnet"
version = "1.2.6"
version = "1.2.7"
edition = "2021"
license = "MIT"
description = "punchnet client"

View File

@ -1,3 +1,6 @@
SHELL := /bin/bash
.SHELLFLAGS := --login -c
self: libtun-so
RUSTFLAGS="-L ." cargo build --release
@ -7,7 +10,6 @@ linux: libtun-so
aarch64: libtun-so-aarch64
RUSTFLAGS="-L ." cargo build --release --target aarch64-unknown-linux-gnu
linux-tun: libtun-so
RUSTFLAGS="-L ." cargo build --features "tun" --release