From 2d9491304e01d242ed1f8cb8f1f4c88f35888204 Mon Sep 17 00:00:00 2001 From: Aditya Bisht Date: Mon, 2 Sep 2024 21:55:41 +0000 Subject: [PATCH] feat: add build github workflow --- .github/workflows/build-test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..06bad2c --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,31 @@ +name: Build-Test + +on: push + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Rust + run: rustup show + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + + - name: Setup Yarn + uses: Swatinem/setup-yarn@v1 + + - name: Install Yarn dependencies + run: yarn install + + - name: Build Rust binary + run: cargo build --release + + - name: Test Rust binary + run: cargo test --release + + - name: Build node binary + run: yarn build-release \ No newline at end of file