From 3afa09f75d2d18b9b0ef804e3d51956fa5ea7767 Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Sun, 22 Feb 2026 14:37:02 +0100 Subject: [PATCH] install nimble in ci workflows --- .github/workflows/ci.yml | 52 ++++++++++----------------- .github/workflows/container-image.yml | 20 ++++------- 2 files changed, 24 insertions(+), 48 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8170cccb5..bfbb6fbd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,20 +63,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install Nim - uses: iffy/install-nim@v5 - with: - version: binary:2.2.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Cache nimble packages - uses: actions/cache@v4 - with: - path: ~/.nimble/pkgs2 - key: ${{ runner.os }}-nimble-${{ hashFiles('nimble.lock') }} - restore-keys: | - ${{ runner.os }}-nimble- + - name: Install Nim via choosenim + run: | + curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y + echo "$HOME/.nimble/bin" >> $GITHUB_PATH + nim --version + nimble --version - name: Make update run: make update @@ -120,20 +112,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install Nim - uses: iffy/install-nim@v5 - with: - version: binary:2.2.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Cache nimble packages - uses: actions/cache@v4 - with: - path: ~/.nimble/pkgs2 - key: ${{ runner.os }}-nimble-${{ hashFiles('nimble.lock') }} - restore-keys: | - ${{ runner.os }}-nimble- + - name: Install Nimble via choosenim + run: | + curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y + echo "$HOME/.nimble/bin" >> $GITHUB_PATH + nim --version + nimble --version - name: Make update run: make update @@ -200,12 +184,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install Nim - uses: iffy/install-nim@v5 - with: - version: binary:2.2.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install Nimble via choosenim + run: | + curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y + echo "$HOME/.nimble/bin" >> $GITHUB_PATH + nim --version + nimble --version - name: Build nph run: | diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 37fe8e732..4469c4e77 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -46,20 +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: Cache nimble packages - if: ${{ steps.secrets.outcome == 'success' }} - uses: actions/cache@v4 - with: - path: ~/.nimble/pkgs2 - key: ${{ runner.os }}-nimble-${{ hashFiles('nimble.lock') }} - restore-keys: | - ${{ runner.os }}-nimble- + - name: Install Nimble via choosenim + run: | + curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y + echo "$HOME/.nimble/bin" >> $GITHUB_PATH + nim --version + nimble --version - name: Build binaries id: build