From 469b93ec02bc6e79bf997cd20224fb291a51b30f Mon Sep 17 00:00:00 2001 From: Will Qiu Date: Mon, 2 Jan 2023 21:29:39 +0800 Subject: [PATCH] change ci config --- .github/workflows/CI.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 233c1df9..873406e3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,10 +1,14 @@ -on: [push] +on: + push: + branches: + - main + pull_request: name: CI jobs: build_and_test: - name: Rust project + name: Rust Abstract Account Project runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -15,6 +19,15 @@ jobs: - name: Setup run: | make fetch-thirdparty + - name: Install solc + run: | + sudo add-apt-repository ppa:ethereum/ethereum + sudo add-apt-repository ppa:ethereum/ethereum-dev + sudo apt-get update + sudo apt-get install solc + - name: Build + run: | + cargo build - name: Lint run: | make lint