From e6f101633106b16f6e30b10e8b01dedc02073e1a Mon Sep 17 00:00:00 2001 From: zsq1234 <2387311298@qq.com> Date: Mon, 5 Aug 2024 11:27:45 +0800 Subject: [PATCH] feat: add univer ci image build --- .github/workflows/ci-univer.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/ci-univer.yml b/.github/workflows/ci-univer.yml index 71a413735d18..0d420d725e59 100644 --- a/.github/workflows/ci-univer.yml +++ b/.github/workflows/ci-univer.yml @@ -73,6 +73,48 @@ jobs: echo "DOCKER_TAG: ${DOCKER_TAG}" echo "gh-docker-tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT + packages-build: + name: 📦 Build Packages + needs: [release-versions] + runs-on: ubuntu-20.04 + steps: + - name: Github Info + run: | + echo "GITHUB_ACTION: $GITHUB_ACTION" + echo "GITHUB_ACTOR: $GITHUB_ACTOR" + echo "GITHUB_REF: $GITHUB_REF" + echo "GITHUB_HEAD_REF: $GITHUB_HEAD_REF" + echo "GITHUB_BASE_REF: $GITHUB_BASE_REF" + echo "github.event_name: ${{ github.event_name }}" + cat $GITHUB_EVENT_PATH + + - name: Set Swap Space + uses: pierotofy/set-swap-space@master + with: + swap-size-gb: 4 + + - uses: actions/checkout@v4 + + - name: Setup NodeJS + uses: ./.github/actions/setup-node + with: + node-version: ${{ needs.release-versions.outputs.node-version }} + cache-modules: true + install: true + + - name: Cache vite + uses: actions/cache@v3 + with: + path: ./node_modules/.vite + key: vite-local-cache-${{ runner.OS }}-${{ hashFiles('package.json') }} + restore-keys: | + vite-local-cache-${{ runner.os }}- + + - uses: dtinth/setup-github-actions-caching-for-turbo@v1 + + - name: Build Rocket.Chat Packages + run: yarn build + build: name: 📦 Meteor Build - coverage needs: [release-versions, packages-build]