From 8b4aa0b79761c6cb11b9106be247f477237be4c2 Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Fri, 18 Jul 2025 16:14:26 +0100 Subject: [PATCH] upload and download dist --- .gitea/workflows/cargo.yaml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/cargo.yaml b/.gitea/workflows/cargo.yaml index 7e036fa..4a38a60 100644 --- a/.gitea/workflows/cargo.yaml +++ b/.gitea/workflows/cargo.yaml @@ -50,8 +50,28 @@ jobs: command: clippy args: -p nuchat --no-deps -- -Dwarnings -Wclippy::correctness -Wclippy::complexity -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc + ui: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + - name: Build + working-directory: ./ui + run: | + npm ci + npm run build + - name: Upload dist + working-directory: ./ui + uses: https://gitea.com/actions/upload-artifact@v4 + with: + name: dist-${{ hashFiles('src/**') }} + path: dist + include-hidden-files: true test: - needs: build + needs: [build, ui] runs-on: rust-latest steps: - name: Check out repository code @@ -70,8 +90,12 @@ jobs: restore-keys: | ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} ${{ runner.os }}-cargo- - - name: Build - run: make build + - name: Download dist + working-directory: ./ui + uses: https://gitea.com/actions/download-artifact@v4 + with: + name: dist-${{ hashFiles('src/**') }} + path: ../dist - name: Run tests uses: actions-rs/cargo@v1 with: