From a9b4de2731f4cec26afdcaf53a16e3d5aa1bdc6b Mon Sep 17 00:00:00 2001 From: core Date: Wed, 27 Sep 2023 13:47:05 -0400 Subject: [PATCH] [ci] tfclient x64 builds --- .forgejo/workflows/tfclient.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/workflows/tfclient.yml diff --git a/.forgejo/workflows/tfclient.yml b/.forgejo/workflows/tfclient.yml new file mode 100644 index 0000000..4a4a849 --- /dev/null +++ b/.forgejo/workflows/tfclient.yml @@ -0,0 +1,32 @@ +on: + push: + branches: + master +env: + CARGO_TERM_COLOR: always +jobs: + build_x64: + runs_on: docker + steps: + - name: Checkout code + with: actions/checkout@v2 + - name: Setup Go toolchain + uses: actions/setup-go@v4 + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Enable Rust dependency caching + uses: Swatinem/rust-cache@v2 + - name: Compile release binary + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --bin tfclient + - name: Upload binary + uses: actions/upload-artifact@v3 + with: + name: tfclient + path: target/release/tfclient \ No newline at end of file