修改内核压缩方式
This commit is contained in:
13
.github/workflows/update_meta_core_test.yaml
vendored
13
.github/workflows/update_meta_core_test.yaml
vendored
@@ -19,6 +19,7 @@ on:
|
|||||||
description: 'build tags'
|
description: 'build tags'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
go:
|
go:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -109,7 +110,7 @@ jobs:
|
|||||||
GOMIPS: ${{ matrix.gomips }}
|
GOMIPS: ${{ matrix.gomips }}
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
TAGS: ${{needs.meta.outputs.tags}}
|
TAGS: ${{needs.meta.outputs.tags}}
|
||||||
VERSION: ${{needs.sing-box.outputs.version}}
|
VERSION: ${{needs.meta.outputs.version}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout meta
|
- name: Checkout meta
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
@@ -140,7 +141,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ github.event.inputs.tag3 }}
|
RELEASE: ${{ github.event.inputs.tag3 }}
|
||||||
VERSION: ${{needs.sing-box.outputs.version}}
|
VERSION: ${{needs.meta.outputs.version}}
|
||||||
steps:
|
steps:
|
||||||
- name: Download file from workspace
|
- name: Download file from workspace
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@@ -152,20 +153,20 @@ jobs:
|
|||||||
for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsel-hardfloat mipsel-softfloat;do
|
for arch in amd64 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/singbox-linux-${arch}.tar.gz -C ./tmp CrashCore
|
tar --no-same-owner -zcvf ./tmp/meta-linux-${arch}.tar.gz -C ./tmp CrashCore
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Create Release and Upload Release Asset
|
- name: Create Release and Upload Release Asset
|
||||||
if: ${{ env.RELEASE != '0' }}
|
if: ${{ env.RELEASE != '0' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: singbox_core${{ github.event.inputs.tag3 }}
|
tag_name: meta_core${{ github.event.inputs.tag3 }}
|
||||||
name: singbox_core${{ github.event.inputs.tag3 }}
|
name: meta_core${{ github.event.inputs.tag3 }}
|
||||||
body: "The ${{env.VERSION}} version of ${{ github.event.inputs.tag1 }} \n这是${{ github.event.inputs.tag1 }}的${{env.VERSION}}版本内核文件\nhttps://github.com/${{ github.event.inputs.tag1 }}/releases \nOnly support for ShellCrash\n仅适配ShellCrash项目使用"
|
body: "The ${{env.VERSION}} version of ${{ github.event.inputs.tag1 }} \n这是${{ github.event.inputs.tag1 }}的${{env.VERSION}}版本内核文件\nhttps://github.com/${{ github.event.inputs.tag1 }}/releases \nOnly support for ShellCrash\n仅适配ShellCrash项目使用"
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
./tmp/singbox*
|
./tmp/meta*
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
if: ${{ env.RELEASE == '0' }}
|
if: ${{ env.RELEASE == '0' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user