修改内核压缩方式
This commit is contained in:
18
.github/workflows/update_meta_core_test.yaml
vendored
18
.github/workflows/update_meta_core_test.yaml
vendored
@@ -119,9 +119,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
|
- name: Set ENV
|
||||||
|
run: |
|
||||||
|
sudo timedatectl set-timezone "Asia/Shanghai"
|
||||||
|
echo "BUILDTIME=$(date)" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: build core
|
- name: build core
|
||||||
id: build
|
id: build
|
||||||
run: go build -v -trimpath -ldflags "-X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -s -w -buildid=" -tags "${TAGS}" -o meta
|
run: go build -v -trimpath -ldflags "-X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -s -w -buildid=" -tags "${TAGS}" -o meta
|
||||||
|
|
||||||
- name: Upload file to workspace
|
- name: Upload file to workspace
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -145,10 +151,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip core by tar
|
- name: Zip core by tar
|
||||||
run: |
|
run: |
|
||||||
for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsel-hardfloat mipsel-softfloat;do
|
for arch in amd64 ;do #armv5 armv7 arm64 mips-softfloat mipsel-hardfloat mipsel-softfloat;do
|
||||||
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/meta-linux-${arch}.tar.gz -C ./tmp CrashCore
|
tar --no-same-owner -zcvf ./tmp/clash-linux-${arch}.tar.gz -C ./tmp CrashCore
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Create Release and Upload Release Asset
|
- name: Create Release and Upload Release Asset
|
||||||
@@ -161,15 +167,15 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
./tmp/meta*
|
./tmp/clash*.tar.gz
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
if: ${{ env.RELEASE == '0' }}
|
if: ${{ env.RELEASE == '0' }}
|
||||||
uses: actions/upload-artifact@v4.1.0
|
uses: actions/upload-artifact@v4.1.0
|
||||||
with:
|
with:
|
||||||
name: meta-${{env.VERSION}}-${{matrix.jobs.output}}
|
name: clash-${{env.VERSION}}-${{matrix.jobs.output}}
|
||||||
path: |
|
path: |
|
||||||
./tmp/meta*
|
./tmp/clash*.tar.gz
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
|
|
||||||
- name: Cleanup Workflow
|
- name: Cleanup Workflow
|
||||||
|
|||||||
Reference in New Issue
Block a user