diff --git a/.github/workflows/update_clash_core.yaml b/.github/workflows/update_clash_core.yaml deleted file mode 100644 index 77001a5..0000000 --- a/.github/workflows/update_clash_core.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Update Clash Core -on: - workflow_dispatch: - inputs: - version: - description: 'version of Clash, such as v1.10.6' - required: true - type: string -env: - download_version: ${{ github.event.inputs.version }} - download_url: https://github.com/Dreamacro/clash/releases/download -jobs: - Update: - runs-on: ubuntu-latest - steps: - - name: Clone Repository - uses: actions/checkout@main - - name: Init Dependencies - run: | - wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz - tar xf upx-3.96-amd64_linux.tar.xz - tar xf upx-3.93-amd64_linux.tar.xz - - name: Download Core - run: | - archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" - mkdir tmp - for arch in ${archs};do - wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} - chmod +x ./tmp/clash-linux-${arch} - if [ "${arch}" != "armv5" ];then - if [[ ${arch} == mips* ]];then - ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} - else - ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} - fi - fi - done - rm -fr upx* - - name: Update - run: | - rm -fr ./bin/clash/* - cp ./tmp/* ./bin/clash/ - rm -fr ./tmp - sed -i "s/clash_v=.*/clash_v=$(./bin/clash/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - - name: Commit and push - run: | - git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" - git add . && git commit -m "更新Clash内核至${download_version}" || exit 0 - git push - - name: Cleanup Workflow - uses: Mattraks/delete-workflow-runs@main - with: - retain_days: 1 - keep_minimum_runs: 2 diff --git a/.github/workflows/update_premium.latest_core.yaml b/.github/workflows/update_premium.latest_core.yaml deleted file mode 100644 index 08bf2cb..0000000 --- a/.github/workflows/update_premium.latest_core.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: Update Premium latest Core -on: - #schedule: - #- cron: 0 20 * * 6 - workflow_dispatch: - -env: - download_version: latest - download_url: https://release.dreamacro.workers.dev -jobs: - Update: - runs-on: ubuntu-latest - steps: - - name: Clone Repository - uses: actions/checkout@main - - name: Init Dependencies - run: | - wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz - tar xf upx-3.96-amd64_linux.tar.xz - tar xf upx-3.93-amd64_linux.tar.xz - - name: Download Core - run: | - archs="386 amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat" - mkdir tmp - for arch in ${archs};do - wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} - chmod +x ./tmp/clash-linux-${arch} - if [ "${arch}" != "armv5" ];then - if [[ ${arch} == mips* ]];then - ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} - else - ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} - fi - fi - done - mv -f ./tmp/clash-linux-arm64 ./tmp/clash-linux-armv8 - rm -fr upx* - - name: Create Release and Upload Release Asset - uses: softprops/action-gh-release@v1 - with: - tag_name: clash.premium.latest - name: clash.premium.latest - body: "The latest version of clash.premium core \n这是clash.premium的最新版本内核文件\nhttps://github.com/Dreamacro/clash/releases/tag/premium \nZip by upx\n使用了upx进行压缩\nOnly support for ShellClash\n仅限于ShellClash项目使用" - draft: false - prerelease: true - files: | - ./tmp/* - - name: Cleanup Workflow - uses: Mattraks/delete-workflow-runs@main - with: - retain_days: 1 - keep_minimum_runs: 2 diff --git a/.github/workflows/update_premium_core.yaml b/.github/workflows/update_premium_core.yaml deleted file mode 100644 index e45ddbc..0000000 --- a/.github/workflows/update_premium_core.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: Update Premium Core -on: - workflow_dispatch: - inputs: - version: - description: 'version of Clash Premium, such as 2022.05.18' - required: true - type: string -env: - download_version: ${{ github.event.inputs.version }} - download_url: https://release.dreamacro.workers.dev -jobs: - Update: - runs-on: ubuntu-latest - steps: - - name: Clone Repository - uses: actions/checkout@main - - name: Init Dependencies - run: | - wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz - tar xf upx-3.96-amd64_linux.tar.xz - tar xf upx-3.93-amd64_linux.tar.xz - - name: Download Core - run: | - archs="386 amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat" - mkdir tmp - for arch in ${archs};do - wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} - chmod +x ./tmp/clash-linux-${arch} - if [ "${arch}" != "armv5" ];then - if [[ ${arch} == mips* ]];then - ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} - else - ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} - fi - fi - done - mv -f ./tmp/clash-linux-arm64 ./tmp/clash-linux-armv8 - rm -fr upx* - - name: Update - run: | - rm -fr ./bin/clashpre/* - cp ./tmp/* ./bin/clashpre/ - rm -fr ./tmp - sed -i "s/clashpre_v=.*/clashpre_v=$(./bin/clashpre/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - - name: Commit and push - run: | - git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" - git add . && git commit -m "更新Premium内核至${download_version}" || exit 0 - git push - - name: Cleanup Workflow - uses: Mattraks/delete-workflow-runs@main - with: - retain_days: 1 - keep_minimum_runs: 2