From 2e781e0c419028cfc3f8c4a0032ec7cfec637232 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 3 Nov 2023 13:41:32 +0800 Subject: [PATCH] Disable caching for Nim and deps, increase verbosity --- .github/actions/install_nim/action.yml | 9 -------- .github/workflows/ci.yml | 30 +++++++++++++------------- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/.github/actions/install_nim/action.yml b/.github/actions/install_nim/action.yml index 1bb49fcb8..171a7356b 100644 --- a/.github/actions/install_nim/action.yml +++ b/.github/actions/install_nim/action.yml @@ -112,18 +112,9 @@ runs: echo "MAKE_CMD=${MAKE_CMD}" >> $GITHUB_ENV echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH - - name: Restore Nim from cache - id: nim-cache - uses: actions/cache@v3 - with: - path: '${{ github.workspace }}/nim' - key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }} - - name: Build Nim and Nimble shell: ${{ inputs.shell }} - if: ${{ steps.nim-cache.outputs.cache-hit != 'true' }} run: | - # We don't want partial matches of the cache restored rm -rf nim curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_nim.sh env MAKE="${MAKE_CMD} -j${ncpu}" ARCH_OVERRIDE=${PLATFORM} NIM_COMMIT=${{ inputs.nim_branch }} \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb48f2e42..697a47d58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,11 @@ -name: CI +name: CI - Test on: push: branches: - - master - - unstable - pull_request: +# - master +# - unstable + - 'fix/ci-workflow-stability' + #pull_request: workflow_dispatch: concurrency: @@ -12,6 +13,11 @@ concurrency: cancel-in-progress: true jobs: + delete-cache: + runs-on: ubuntu-latest + steps: + - uses: snnaplab/delete-branch-cache-action@v1 + build: timeout-minutes: 90 strategy: @@ -52,7 +58,7 @@ jobs: continue-on-error: ${{ matrix.branch == 'devel' }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true @@ -65,23 +71,16 @@ jobs: nim_branch: ${{ matrix.branch }} - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '~1.15.5' + cache: false - name: Install p2pd run: | V=1 bash scripts/build_p2pd.sh p2pdCache 124530a3 - - name: Restore deps from cache - id: deps-cache - uses: actions/cache@v3 - with: - path: nimbledeps - key: nimbledeps-${{ hashFiles('.pinned') }} - - name: Install deps - if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }} run: | nimble install_pinned @@ -89,4 +88,5 @@ jobs: run: | nim --version nimble --version - nimble test + NIMFLAGS="${NIMFLAGS} --mm:refc --verbosity:3" nimble test +