Skip to content

HevConfig: Bump up to 2.5.3. #7

HevConfig: Bump up to 2.5.3.

HevConfig: Bump up to 2.5.3. #7

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
env:
MUSL_SDK_URL: https://musl.cc
MUSL_SDK_X86_32: i486-linux-musl-cross.tgz
MUSL_SDK_X86_64: x86_64-linux-musl-cross.tgz
MUSL_SDK_ARM_32: arm-linux-musleabi-cross.tgz
MUSL_SDK_ARM_64: aarch64-linux-musl-cross.tgz
MUSL_SDK_MIPS_32: mips-linux-muslsf-cross.tgz
MUSL_SDK_MIPS_32_EL: mipsel-linux-muslsf-cross.tgz
MUSL_SDK_MIPS_64: mips64-linux-musl-cross.tgz
MUSL_SDK_MIPS_64_EL: mips64el-linux-musl-cross.tgz
MUSL_SDK_RISCV_32: riscv32-linux-musl-cross.tgz
MUSL_SDK_RISCV_64: riscv64-linux-musl-cross.tgz
jobs:
build:
name: Build and release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: true
- name: Init
run: |
sudo apt -qq update
sudo apt -qq install -y wget git
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_X86_32 }}
tar xf ${{ env.MUSL_SDK_X86_32 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_X86_64 }}
tar xf ${{ env.MUSL_SDK_X86_64 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_ARM_32 }}
tar xf ${{ env.MUSL_SDK_ARM_32 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_ARM_64 }}
tar xf ${{ env.MUSL_SDK_ARM_64 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_MIPS_32 }}
tar xf ${{ env.MUSL_SDK_MIPS_32 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_MIPS_32_EL }}
tar xf ${{ env.MUSL_SDK_MIPS_32_EL }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_MIPS_64 }}
tar xf ${{ env.MUSL_SDK_MIPS_64 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_MIPS_64_EL }}
tar xf ${{ env.MUSL_SDK_MIPS_64_EL }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_RISCV_32 }}
tar xf ${{ env.MUSL_SDK_RISCV_32 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_RISCV_64 }}
tar xf ${{ env.MUSL_SDK_RISCV_64 }}
- name: Build Linux
run: |
# x86_32
PREFIX=$(basename ${{ env.MUSL_SDK_X86_32 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-x86_32
# x86_64
PREFIX=$(basename ${{ env.MUSL_SDK_X86_64 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-x86_64
# arm32
PREFIX=$(basename ${{ env.MUSL_SDK_ARM_32 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-arm32
# arm64
PREFIX=$(basename ${{ env.MUSL_SDK_ARM_64 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-arm64
# mips32
PREFIX=$(basename ${{ env.MUSL_SDK_MIPS_32 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-mips32
# mips32el
PREFIX=$(basename ${{ env.MUSL_SDK_MIPS_32_EL }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-mips32el
# mips64
PREFIX=$(basename ${{ env.MUSL_SDK_MIPS_64 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-mips64
# mips64el
PREFIX=$(basename ${{ env.MUSL_SDK_MIPS_64_EL }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-mips64el
# riscv32
PREFIX=$(basename ${{ env.MUSL_SDK_RISCV_32 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-riscv32
# riscv64
PREFIX=$(basename ${{ env.MUSL_SDK_RISCV_64 }} cross.tgz)
make clean
make CROSS_PREFIX=$(pwd)/${PREFIX}cross/bin/${PREFIX} ENABLE_STATIC=1 -j
cp bin/hev-socks5-tproxy hev-socks5-tproxy-linux-riscv64
- name: Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload linux-x86_32
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-x86_32
asset_name: hev-socks5-tproxy-linux-x86_32
asset_content_type: application/octet-stream
- name: Upload linux-x86_64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-x86_64
asset_name: hev-socks5-tproxy-linux-x86_64
asset_content_type: application/octet-stream
- name: Upload linux-arm32
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-arm32
asset_name: hev-socks5-tproxy-linux-arm32
asset_content_type: application/octet-stream
- name: Upload linux-arm64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-arm64
asset_name: hev-socks5-tproxy-linux-arm64
asset_content_type: application/octet-stream
- name: Upload linux-mips32
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-mips32
asset_name: hev-socks5-tproxy-linux-mips32
asset_content_type: application/octet-stream
- name: Upload linux-mips32el
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-mips32el
asset_name: hev-socks5-tproxy-linux-mips32el
asset_content_type: application/octet-stream
- name: Upload linux-mips64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-mips64
asset_name: hev-socks5-tproxy-linux-mips64
asset_content_type: application/octet-stream
- name: Upload linux-mips64el
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-mips64el
asset_name: hev-socks5-tproxy-linux-mips64el
asset_content_type: application/octet-stream
- name: Upload linux-riscv32
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-riscv32
asset_name: hev-socks5-tproxy-linux-riscv32
asset_content_type: application/octet-stream
- name: Upload linux-riscv64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hev-socks5-tproxy-linux-riscv64
asset_name: hev-socks5-tproxy-linux-riscv64
asset_content_type: application/octet-stream