From 63cc3fcfbf33d09342ba8622d691db521f2d55d3 Mon Sep 17 00:00:00 2001 From: bendanzhentan <455462586@qq.com> Date: Tue, 21 Nov 2023 09:50:56 +0800 Subject: [PATCH] ci: add build.yaml --- .github/workflows/build.yaml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..24b7144 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,41 @@ +name: Build + +on: + push: + # branches: [ main ] + # pull_request: + # branches: [ main ] + +jobs: + + 'build-go': + name: make build-go + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.21 + + - name: Check out + uses: actions/checkout@v3 + + - name: Make build-go + run: make build-go + + 'build-solidity': + name: make build-solidity + runs-on: ubuntu-latest + steps: + + - name: Check out + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Make build-solidity + run: cd contracts && forge build