diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml deleted file mode 100644 index eeb9930..0000000 --- a/.github/actions/cache/action.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Yarn Cache -author: Maiko Tan -description: Cache Yarn dependencies - -inputs: - os: - description: | - The operating system to cache dependencies for. This should almost always be `runner.os`. - required: true - default: ${{ runner.os }} - -runs: - using: composite - steps: - - name: Get yarn cache directory path - id: yarn-cache-dir-path - shell: bash - run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ inputs.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ inputs.os }}-yarn- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d08b0b..3c727b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,24 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - - name: Enable Corepack - run: corepack enable - - - name: Cache Yarn dependencies - uses: ./.github/actions/cache - with: - os: ${{ runner.os }} - - - name: Install dependencies - run: yarn install + - name: Setup + uses: cordiverse/workflows/.github/actions/setup@main - name: Lint JavaScript - # 这里要按顺序执行 - run: | - yarn build core && - yarn build memory && - yarn build webui + run: yarn build:all