From cbe23de6f9186f0756f76495f2d9b1b12fed914b Mon Sep 17 00:00:00 2001 From: fireandicefrog Date: Fri, 15 Aug 2025 00:01:58 +1200 Subject: [PATCH] chore: added github action --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1cbe585 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build Project + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install Node.js dependencies + run: npm install + working-directory: string-art-demo + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Build WASM + run: ./build-wasm.sh + + - name: Build JavaScript project + run: npm run build + working-directory: string-art-demo