From 68a07eb4565e7532c817b6724105a96a8f466a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BB=E6=83=B3?= Date: Sat, 20 Jul 2024 09:43:05 +0800 Subject: [PATCH] Create blockchain.yml --- .github/workflows/blockchain.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/blockchain.yml diff --git a/.github/workflows/blockchain.yml b/.github/workflows/blockchain.yml new file mode 100644 index 0000000..ee64d03 --- /dev/null +++ b/.github/workflows/blockchain.yml @@ -0,0 +1,34 @@ +name: Build Blockchain + +on: + push: + branches: + - release/blockchain/* + - workflow + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - name: Setup Go environment + uses: actions/setup-go@v5.0.2 + + - run: sudo apt-get install libmagickwand-dev + - run: pkg-config --cflags --libs MagickWand + - run: wget https://github.com/iconLake/ignite-cli/releases/download/v0.27.3/ignite_0.27.3_linux_amd64.tar.gz + - run: tar -xzvf ignite_0.27.3_linux_amd64.tar.gz -C ./ignite_0.27.3_linux_amd64 + - run: sudo mv ./ignite_0.27.3_linux_amd64/ignite /usr/local/bin/ && sudo chmod +x /usr/local/bin/ignite + - run: cd blockchain && ignite chain build --release --check-dependencies + + - name: Upload iconlaked + uses: actions/upload-artifact@v4 + with: + name: iconlaked + path: ./blockchain/release + overwrite: true +