From 8a91e6e1fe628c47773f28c96ed4af90c59cf7fc Mon Sep 17 00:00:00 2001 From: shinneng Date: Tue, 15 Oct 2024 22:20:51 +0800 Subject: [PATCH 1/3] add: build tools workflow --- .github/workflows/build-tools.yml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-tools.yml diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml new file mode 100644 index 0000000..ccacae8 --- /dev/null +++ b/.github/workflows/build-tools.yml @@ -0,0 +1,45 @@ +name: build tools + +on: + push: + branches: + - 'develop' + - 'master' + - 'main' + pull_request: + branches: + - 'develop' + - 'master' + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: + - '1.19' + - '1.20' + - '1.21.x' + tool: + - 'liquidity_provider' + - 'replicator_onboarding' + - 'transactions' + + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: build ${{ matrix.tool}} + working-directory: tools/${{ matrix.tool}} + run: go mod tidy && go build . + + - name: Upload build artifacts + if: github.event_name == 'push' + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.tool }}-binary + path: tools/${{ matrix.tool}}/${{ matrix.tool }} From 5f2d7f409b98613448bac2e556e401342e43c4f9 Mon Sep 17 00:00:00 2001 From: shinneng Date: Tue, 15 Oct 2024 22:25:16 +0800 Subject: [PATCH 2/3] fix: job matrix --- .github/workflows/build-tools.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml index ccacae8..c46ac5c 100644 --- a/.github/workflows/build-tools.yml +++ b/.github/workflows/build-tools.yml @@ -18,8 +18,8 @@ jobs: strategy: matrix: go-version: - - '1.19' - - '1.20' + # - '1.19' + # - '1.20' - '1.21.x' tool: - 'liquidity_provider' From b0b742711c0a81aad4201f495bcfa2bce57761e6 Mon Sep 17 00:00:00 2001 From: shinneng Date: Tue, 15 Oct 2024 22:29:14 +0800 Subject: [PATCH 3/3] fix: tool name --- .github/workflows/build-tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml index c46ac5c..650680f 100644 --- a/.github/workflows/build-tools.yml +++ b/.github/workflows/build-tools.yml @@ -24,7 +24,7 @@ jobs: tool: - 'liquidity_provider' - 'replicator_onboarding' - - 'transactions' + - 'transfer' steps: - uses: actions/checkout@v4