diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 768b642fd5..f1956dd19a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,4 +53,12 @@ jobs: call-ethash: needs: build - uses: ./.github/workflows/ethash-build.yml \ No newline at end of file + uses: ./.github/workflows/ethash-build.yml + + call-rlp: + needs: build + uses: ./.github/workflows/rlp-build.yml + + call-trie: + needs: build + uses: ./.github/workflows/trie-build.yml \ No newline at end of file diff --git a/.github/workflows/rlp-build.yml.old b/.github/workflows/rlp-build.yml similarity index 80% rename from .github/workflows/rlp-build.yml.old rename to .github/workflows/rlp-build.yml index dbe7f06e21..6725096a0d 100644 --- a/.github/workflows/rlp-build.yml.old +++ b/.github/workflows/rlp-build.yml @@ -1,10 +1,6 @@ name: RLP on: - push: - branches: [master, develop] - tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + workflow_call: workflow_dispatch: env: @@ -15,7 +11,7 @@ defaults: working-directory: packages/rlp concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-rlp cancel-in-progress: true jobs: @@ -33,8 +29,11 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci - working-directory: ${{github.workspace}} + - uses: actions/cache/restore@v3 + with: + path: ${{github.workspace}} + key: ${{hashFiles('packages/**/src')}} + - run: npm run lint - run: npm run coverage diff --git a/.github/workflows/trie-build.yml.old b/.github/workflows/trie-build.yml similarity index 92% rename from .github/workflows/trie-build.yml.old rename to .github/workflows/trie-build.yml index 5adada683d..47a4e3976d 100644 --- a/.github/workflows/trie-build.yml.old +++ b/.github/workflows/trie-build.yml @@ -1,10 +1,6 @@ name: Trie on: - push: - branches: [master, develop] - tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + workflow_call: workflow_dispatch: env: @@ -15,7 +11,7 @@ defaults: working-directory: packages/trie concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-trie cancel-in-progress: true jobs: @@ -33,8 +29,10 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci - working-directory: ${{github.workspace}} + - uses: actions/cache/restore@v3 + with: + path: ${{github.workspace}} + key: ${{hashFiles('packages/**/src')}} - run: npm run lint - run: npm run coverage