~优化文件结构,准备将bin文件放到单独分支

This commit is contained in:
juewuy
2025-12-09 19:44:14 +08:00
parent 92c44a8d28
commit 77f4fede73

View File

@@ -1,4 +1,4 @@
name: Build meta Core for ShellCrash name:test
on: on:
workflow_dispatch: workflow_dispatch:
@@ -66,32 +66,32 @@ jobs:
goos: linux goos: linux
goarch: amd64 goarch: amd64
goamd64: v1 goamd64: v1
# - name: linux-386 - name: linux-386
# goos: linux goos: linux
# goarch: 386 goarch: 386
# - name: linux-arm64 - name: linux-arm64
# goos: linux goos: linux
# goarch: arm64 goarch: arm64
# - name: linux-armv5 - name: linux-armv5
# goos: linux goos: linux
# goarch: arm goarch: arm
# goarm: 5 goarm: 5
# - name: linux-armv7 - name: linux-armv7
# goos: linux goos: linux
# goarch: arm goarch: arm
# goarm: 7 goarm: 7
# - name: linux-mips-softfloat - name: linux-mips-softfloat
# goos: linux goos: linux
# goarch: mips goarch: mips
# gomips: softfloat gomips: softfloat
# - name: linux-mipsle-softfloat - name: linux-mipsle-softfloat
# goos: linux goos: linux
# goarch: mipsle goarch: mipsle
# gomips: softfloat gomips: softfloat
# - name: linux-mipsle-hardfloat - name: linux-mipsle-hardfloat
# goos: linux goos: linux
# goarch: mipsle goarch: mipsle
# gomips: hardfloat gomips: hardfloat
fail-fast: false fail-fast: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -177,6 +177,7 @@ jobs:
- name: Zip core by tar - name: Zip core by tar
run: | run: |
for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat;do for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat;do
[ ! -f ./tmp/linux-${arch}/meta ] && continue
mv -f ./tmp/linux-${arch}/meta ./tmp/CrashCore mv -f ./tmp/linux-${arch}/meta ./tmp/CrashCore
chmod +x ./tmp/CrashCore chmod +x ./tmp/CrashCore
tar --no-same-owner -zcvf ./tmp/clash-linux-${arch}.tar.gz -C ./tmp CrashCore tar --no-same-owner -zcvf ./tmp/clash-linux-${arch}.tar.gz -C ./tmp CrashCore