Skip to content

Commit 97a41f7

Browse files
committed
new: add musl lib
1 parent 3aaf764 commit 97a41f7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ jobs:
9292
- { name: 'hiddify-lib-android', os: 'ubuntu-latest', target: 'android'}
9393
- { name: 'hiddify-lib-linux-amd64', os: 'ubuntu-22.04', target: 'linux-amd64', arch: 'amd64', naive: true , corenet: 'linux/amd64', build_corenet: true }
9494
- { name: 'hiddify-lib-linux-arm64', os: 'ubuntu-latest', target: 'linux-arm64', naive: true , arch: 'arm64', corenet: 'linux/arm64', build_corenet: true }
95+
- { name: 'hiddify-lib-linux-amd64-musl', os: 'ubuntu-22.04', variant: 'musl', target: 'linux-amd64', arch: 'amd64', naive: true , corenet: 'linux/amd64', build_corenet: true }
96+
- { name: 'hiddify-lib-linux-arm64-musl', os: 'ubuntu-latest', variant: 'musl', target: 'linux-arm64', naive: true , arch: 'arm64', corenet: 'linux/arm64', build_corenet: true }
9597
- { name: "hiddify-lib-windows-amd64", os: 'ubuntu-latest', target: 'windows-amd64', aarch: 'x64', naive: true, corenet: 'windows/amd64' }
9698
- { name: "hiddify-lib-macos", os: 'macos-15', target: 'macos' }
9799
- { name: "hiddify-lib-ios", os: "macos-15", target: "ios" }
@@ -119,6 +121,7 @@ jobs:
119121
GOAMD64: ${{ matrix.job.goamd64 }}
120122
GOARM: ${{ matrix.job.goarm }}
121123
GOMIPS: ${{ matrix.job.gomips }}
124+
VARIANT: ${{ matrix.job.variant }}
122125
steps:
123126
- name: Checkout
124127
uses: actions/checkout@v3
@@ -633,7 +636,7 @@ jobs:
633636
)
634637
steps:
635638
- name: Delete artifact
636-
uses: geekyeggo/delete-artifact@v3
639+
uses: geekyeggo/delete-artifact@v5
637640
with:
638641
name: |
639642
hiddify-*

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ build-cronet:
9797
git fetch --depth=1 origin $(CRONET_GO_VERSION) && \
9898
git checkout FETCH_HEAD && \
9999
git submodule update --init --recursive --depth=1 && \
100-
if [ "$(VARIANT)" = "musl" ]; then \
100+
if [ "$${VARIANT}" = "musl" ]; then \
101101
go run ./cmd/build-naive --target=linux/$(ARCH) --libc=musl download-toolchain && \
102102
go run ./cmd/build-naive --target=linux/$(ARCH) --libc=musl env > cronet.env; \
103103
else \
@@ -127,9 +127,9 @@ build-linux: prepare
127127

128128
$(load_cronet_env)
129129
FINAL_TAGS=$(TAGS); \
130-
if [ "$(VARIANT)" = "musl" ]; then \
130+
if [ "$${VARIANT}" = "musl" ]; then \
131131
FINAL_TAGS=$${FINAL_TAGS},with_musl; \
132-
elif [ "$(VARIANT)" = "purego" ]; then \
132+
elif [ "$${VARIANT}" = "purego" ]; then \
133133
FINAL_TAGS="$${FINAL_TAGS},with_purego"; \
134134
fi; \
135135
echo "FinalTags: $$FINAL_TAGS"; \

0 commit comments

Comments
 (0)