增加自动编译singboxp内核任务
This commit is contained in:
5
.github/workflows/core_auto_update.yml
vendored
5
.github/workflows/core_auto_update.yml
vendored
@@ -2,11 +2,11 @@ name: core_auto_update
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 18 * * *
|
- cron: 0 18 * * 6
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_singboxp:
|
auto_update_singboxp_with_wg:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # need this for OIDC
|
id-token: write # need this for OIDC
|
||||||
contents: read
|
contents: read
|
||||||
@@ -17,4 +17,3 @@ jobs:
|
|||||||
tag3: singbox_core_PuerNya
|
tag3: singbox_core_PuerNya
|
||||||
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor
|
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
30
.github/workflows/update_singbox_core.yaml
vendored
30
.github/workflows/update_singbox_core.yaml
vendored
@@ -56,16 +56,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: go
|
needs: go
|
||||||
env:
|
env:
|
||||||
REPO: ${{ github.event.inputs.tag1 }}
|
REPO: ${{ inputs.tag1 }}
|
||||||
TAGS: ${{ github.event.inputs.tag5 }}
|
TAGS: ${{ inputs.tag5 }}
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{steps.sing-box.outputs.version}}
|
version: ${{steps.sing-box.outputs.version}}
|
||||||
tags: ${{steps.sing-box.outputs.tags}}
|
tags: ${{steps.sing-box.outputs.tags}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.1
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.event.inputs.tag1 }}
|
repository: ${{ inputs.tag1 }}
|
||||||
ref: ${{ github.event.inputs.tag2 }}
|
ref: ${{ inputs.tag2 }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: setup go
|
- name: setup go
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
git remote add sekai https://github.com/SagerNet/sing-box.git
|
git remote add sekai https://github.com/SagerNet/sing-box.git
|
||||||
git fetch --tags sekai
|
git fetch --tags sekai
|
||||||
version=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag)
|
version=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag)
|
||||||
[ -z "$version" ] && version=${{ github.event.inputs.tag2 }}
|
[ -z "$version" ] && version=${{ inputs.tag2 }}
|
||||||
echo version=$version >> $GITHUB_OUTPUT
|
echo version=$version >> $GITHUB_OUTPUT
|
||||||
if [ -z "$TAGS" ];then
|
if [ -z "$TAGS" ];then
|
||||||
if [ "$REPO" = 'PuerNya/sing-box' ];then
|
if [ "$REPO" = 'PuerNya/sing-box' ];then
|
||||||
@@ -138,15 +138,15 @@ jobs:
|
|||||||
GOARM: ${{ matrix.goarm }}
|
GOARM: ${{ matrix.goarm }}
|
||||||
GOMIPS: ${{ matrix.gomips }}
|
GOMIPS: ${{ matrix.gomips }}
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
REPO: ${{ github.event.inputs.tag1 }}
|
REPO: ${{ inputs.tag1 }}
|
||||||
TAGS: ${{needs.sing-box.outputs.tags}}
|
TAGS: ${{needs.sing-box.outputs.tags}}
|
||||||
VERSION: ${{needs.sing-box.outputs.version}}
|
VERSION: ${{needs.sing-box.outputs.version}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sing-box
|
- name: Checkout sing-box
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.event.inputs.tag1 }}
|
repository: ${{ inputs.tag1 }}
|
||||||
ref: ${{ github.event.inputs.tag2 }}
|
ref: ${{ inputs.tag2 }}
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
@@ -182,8 +182,8 @@ jobs:
|
|||||||
- sing-box
|
- sing-box
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ github.event.inputs.tag3 }}
|
RELEASE: ${{ inputs.tag3 }}
|
||||||
PUSHDIR: ${{ github.event.inputs.tag4 }}
|
PUSHDIR: ${{ inputs.tag4 }}
|
||||||
VERSION: ${{needs.sing-box.outputs.version}}
|
VERSION: ${{needs.sing-box.outputs.version}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ShellCrash
|
- name: Checkout ShellCrash
|
||||||
@@ -210,8 +210,8 @@ jobs:
|
|||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
if: ${{ env.PUSHDIR != '' }}
|
if: ${{ env.PUSHDIR != '' }}
|
||||||
run: |
|
run: |
|
||||||
[ "${{ github.event.inputs.tag1 }}" = SagerNet/sing-box ] && crashcore='singbox'
|
[ "${{ inputs.tag1 }}" = SagerNet/sing-box ] && crashcore='singbox'
|
||||||
[ "${{ github.event.inputs.tag1 }}" = PuerNya/sing-box ] && crashcore='singboxp'
|
[ "${{ inputs.tag1 }}" = PuerNya/sing-box ] && crashcore='singboxp'
|
||||||
mkdir -p ./bin/${crashcore}
|
mkdir -p ./bin/${crashcore}
|
||||||
rm -fr ./bin/${crashcore}/*
|
rm -fr ./bin/${crashcore}/*
|
||||||
mv -f ./tmp/singbox-linux-*.tar.gz ./bin/${crashcore}/
|
mv -f ./tmp/singbox-linux-*.tar.gz ./bin/${crashcore}/
|
||||||
@@ -225,9 +225,9 @@ jobs:
|
|||||||
if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }}
|
if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.tag3 }}
|
tag_name: ${{ inputs.tag3 }}
|
||||||
name: ${{ github.event.inputs.tag3 }}
|
name: ${{ 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 ${{ inputs.tag1 }} \n这是${{ inputs.tag1 }}的${{env.VERSION}}版本内核文件\nhttps://github.com/${{ inputs.tag1 }}/releases \nOnly support for ShellCrash\n仅适配ShellCrash项目"
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
|
|||||||
Reference in New Issue
Block a user