From 9a2b109a4b0da7b17ffde932c8d3a0e9b630fa45 Mon Sep 17 00:00:00 2001 From: Sehyo Chang Date: Thu, 30 Jan 2025 15:16:58 -0800 Subject: [PATCH] clean up ci --- .github/workflows/ci.yaml | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b835429..7443ed1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,5 @@ name: main CI workflow for PR -permissions: read-all concurrency: group: ci-${{ github.ref }} @@ -47,8 +46,8 @@ jobs: run: make clippy - build: - name: build + build-web: + name: Build web lib runs-on: ubuntu-latest @@ -71,6 +70,32 @@ jobs: - name: Build web run: make -C crates/fluvio-web build + + build-widget: + name: Build widget + runs-on: ubuntu-latest + + + steps: + - name: Checkout Source Code + uses: actions/checkout@v4 + + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable + + - name: install wasm target + run: rustup target add ${{ env.WASI_TARGET }} + + + - name: Setup Rust Cache + uses: Swatinem/rust-cache@v2 + timeout-minutes: 10 + + - name: install trunk + run: cargo binstall trunk + + - name: Build widget run: make -C widgets/counter build @@ -81,7 +106,8 @@ jobs: name: Done needs: - check - - build + - build-web + - build-widget runs-on: ubuntu-latest if: always() steps: