diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b12a5109..3c197be41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ jobs: - 'vendor/**' - 'Makefile' - 'waku.nimble' + - 'nimble.lock' - 'library/**' v2: - 'waku/**' @@ -63,6 +64,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup Nimble + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' + - name: Get submodules hash id: submodules run: | @@ -104,6 +111,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup Nimble + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' + - name: Get submodules hash id: submodules run: | @@ -171,6 +184,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup Nimble + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' + - name: Get submodules hash id: submodules run: | diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 2bc08be2f..2511cae1c 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -46,6 +46,13 @@ jobs: if: ${{ steps.secrets.outcome == 'success' }} uses: actions/checkout@v4 + - name: Setup Nimble + if: ${{ steps.secrets.outcome == 'success' }} + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' + - name: Get submodules hash id: submodules if: ${{ steps.secrets.outcome == 'success' }} diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 50e3c4c3d..52d35fd7e 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -26,7 +26,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Setup Nimble + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' - name: Get submodules hash id: submodules diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index ed6d2cb17..0036fbcb3 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -56,17 +56,22 @@ jobs: run: | which upx gcc g++ make cmake cargo rustc python + - name: Setup Nimble + uses: nim-lang/setup-nimble-action@v2 + with: + nimble-version: '0.16.4' + nim-version: '2.2.4' + - name: Updating submodules run: git submodule update --init --recursive - name: Creating tmp directory run: mkdir -p tmp - - name: Building Nim + - name: Install Nimble dependencies run: | - cd vendor/nimbus-build-system/vendor/Nim - ./build_all.bat - cd ../../../.. + nimble install --depsOnly -y + nimble setup - name: Building miniupnpc run: |