diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da8383e43..41f390013 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim + uses: iffy/install-nim@v5 + with: + version: binary:2.2.4 + - name: Get submodules hash id: submodules run: | @@ -104,6 +109,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim + uses: iffy/install-nim@v5 + with: + version: binary:2.2.4 + - name: Get submodules hash id: submodules run: | @@ -171,6 +181,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim + uses: iffy/install-nim@v5 + with: + version: binary: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..4cc0a8f10 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -46,6 +46,12 @@ jobs: if: ${{ steps.secrets.outcome == 'success' }} uses: actions/checkout@v4 + - name: Install Nim + if: ${{ steps.secrets.outcome == 'success' }} + uses: iffy/install-nim@v5 + with: + version: binary:2.2.4 + - name: Get submodules hash id: submodules if: ${{ steps.secrets.outcome == 'success' }} diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index faded198b..be891d773 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -44,6 +44,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim + uses: iffy/install-nim@v5 + with: + version: binary:2.2.4 + - name: prep variables id: vars run: | diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 50e3c4c3d..abd7af94d 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -28,6 +28,11 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Install Nim + uses: iffy/install-nim@v5 + with: + version: binary:2.2.4 + - name: Get submodules hash id: submodules run: | diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index ed6d2cb17..0e6f297fd 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -33,6 +33,7 @@ jobs: make cmake upx + mingw-w64-x86_64-nim mingw-w64-x86_64-rust mingw-w64-x86_64-postgresql mingw-w64-x86_64-gcc @@ -54,31 +55,10 @@ jobs: - name: Verify dependencies run: | - which upx gcc g++ make cmake cargo rustc python + which upx gcc g++ make cmake cargo rustc python nim nimble - - name: Updating submodules - run: git submodule update --init --recursive - - - name: Creating tmp directory - run: mkdir -p tmp - - - name: Building Nim - run: | - cd vendor/nimbus-build-system/vendor/Nim - ./build_all.bat - cd ../../../.. - - - name: Building miniupnpc - run: | - cd vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc - make -f Makefile.mingw CC=gcc CXX=g++ libminiupnpc.a V=1 - cd ../../../../.. - - - name: Building libnatpmp - run: | - cd ./vendor/nim-nat-traversal/vendor/libnatpmp-upstream - make CC="gcc -fPIC -D_WIN32_WINNT=0x0600 -DNATPMP_STATICLIB" libnatpmp.a V=1 - cd ../../../../ + - name: Make update + run: make update - name: Building wakunode2.exe run: |