修改内核压缩方式

This commit is contained in:
juewuy
2024-01-29 16:11:32 +08:00
parent f29a60862c
commit 177ef3bb86

View File

@@ -50,6 +50,17 @@ jobs:
uses: actions/setup-go@v4.1.0 uses: actions/setup-go@v4.1.0
with: with:
go-version: ${{needs.go.outputs.version}} go-version: ${{needs.go.outputs.version}}
- name: get meta version
id: meta
run: |
version=${{ github.event.inputs.tag2 }}
echo version=$version >> $GITHUB_OUTPUT
if [ -z "$TAGS" ];then
echo tags='' >> $GITHUB_OUTPUT
else
echo tags=$TAGS >> $GITHUB_OUTPUT
fi
cross: cross:
strategy: strategy:
@@ -98,7 +109,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: ${{ github.event.inputs.tag2 }} VERSION: ${{needs.sing-box.outputs.version}}
steps: steps:
- name: Checkout meta - name: Checkout meta
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -114,7 +125,7 @@ jobs:
- name: build core - name: build core
id: build id: build
run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${VERSION}' -s -w -buildid=" --tags="${TAGS}" run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${VERSION}' -s -w -buildid=" -tags "${TAGS}"
- name: Upload file to workspace - name: Upload file to workspace
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@@ -129,7 +140,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
RELEASE: ${{ github.event.inputs.tag3 }} RELEASE: ${{ github.event.inputs.tag3 }}
VERSION: ${{ github.event.inputs.tag2 }} VERSION: ${{needs.sing-box.outputs.version}}
steps: steps:
- name: Download file from workspace - name: Download file from workspace
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4