From 13e0279c9bc0ffc5a95740e7da9e168354bd629c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=BC=E6=97=A5?= Date: Thu, 26 Oct 2023 15:18:36 +0800 Subject: [PATCH] feat(relay): add custom workflow --- .github/workflows/custom_build.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/custom_build.yml diff --git a/.github/workflows/custom_build.yml b/.github/workflows/custom_build.yml new file mode 100644 index 0000000000..8765fbb445 --- /dev/null +++ b/.github/workflows/custom_build.yml @@ -0,0 +1,36 @@ +name: Binary Custom Release Build + +on: workflow_dispatch + +env: + CARGO_TERM_COLOR: always + +jobs: + linux: + name: Linux + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build in Docker + run: | + # Get the latest stable rust toolchain version available + TOOLCHAIN=$(curl -s 'https://static.rust-lang.org/dist/channel-rust-stable.toml' | awk '/\[pkg.rust\]/ {getline;print;}' | sed -r 's/^version = "([0-9.]+) .*/\1/') + scripts/docker-build-linux.sh "$TOOLCHAIN" + env: + BUILD_ARCH: x86_64 + RELAY_FEATURES: + + - name: Bundle Debug File + run: | + cd target/x86_64-unknown-linux-gnu/release/ + zip relay-Linux-x86_64-debug.zip relay.debug + mv relay relay-Linux-x86_64 + + - uses: actions/upload-artifact@v3 + with: + name: ${{ github.sha }} + path: target/x86_64-unknown-linux-gnu/release/relay-Linux-x86_64*