From 866a1dc4a56214cf84909bdee23efd883f82fde2 Mon Sep 17 00:00:00 2001 From: core Date: Thu, 28 Sep 2023 10:55:09 -0400 Subject: [PATCH] [ci] tfclient arm64 builds --- .forgejo/workflows/tfclient.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/tfclient.yml b/.forgejo/workflows/tfclient.yml index 07dd44d..316d7a1 100644 --- a/.forgejo/workflows/tfclient.yml +++ b/.forgejo/workflows/tfclient.yml @@ -30,4 +30,30 @@ jobs: command: build args: --release --bin tfclient - name: Upload binary - run: sshpass -p "${{ secrets.TIRFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/release/tfclient ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/tfclient/amd64/$GITHUB_SHA/tfclient \ No newline at end of file + run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/release/tfclient ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/tfclient/amd64/$GITHUB_SHA/tfclient + build_arm64: + runs_on: docker-arm64 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Go toolchain + uses: actions/setup-go@v4 + with: + go-version: '1.20' + - name: Setup Rust toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install additional dependencies + run: apt update && apt-get install -y libclang-dev clang sshpass rsync + - name: Enable Rust dependency caching + uses: https://github.com/Swatinem/rust-cache@v2 + - name: Compile release binary + uses: https://github.com/actions-rs/cargo@v1 + with: + command: build + args: --release --bin tfclient + - name: Upload binary + run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/release/tfclient ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/tfclient/arm64/$GITHUB_SHA/tfclient \ No newline at end of file