mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-18 04:39:29 +00:00
install nimble in ci workflows
This commit is contained in:
parent
acdb67dabf
commit
f66b8e9cef
52
.github/workflows/ci.yml
vendored
52
.github/workflows/ci.yml
vendored
@ -63,20 +63,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nim
|
- name: Install Nim via choosenim
|
||||||
uses: iffy/install-nim@v5
|
run: |
|
||||||
with:
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
|
||||||
version: binary:2.2.4
|
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
|
||||||
env:
|
nim --version
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
nimble --version
|
||||||
|
|
||||||
- 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: Make update
|
- name: Make update
|
||||||
run: make update
|
run: make update
|
||||||
@ -120,20 +112,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nim
|
- name: Install Nimble via choosenim
|
||||||
uses: iffy/install-nim@v5
|
run: |
|
||||||
with:
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
|
||||||
version: binary:2.2.4
|
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
|
||||||
env:
|
nim --version
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
nimble --version
|
||||||
|
|
||||||
- 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: Make update
|
- name: Make update
|
||||||
run: make update
|
run: make update
|
||||||
@ -200,12 +184,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nim
|
- name: Install Nimble via choosenim
|
||||||
uses: iffy/install-nim@v5
|
run: |
|
||||||
with:
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
|
||||||
version: binary:2.2.4
|
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
|
||||||
env:
|
nim --version
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
nimble --version
|
||||||
|
|
||||||
- name: Build nph
|
- name: Build nph
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
20
.github/workflows/container-image.yml
vendored
20
.github/workflows/container-image.yml
vendored
@ -46,20 +46,12 @@ jobs:
|
|||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
if: ${{ steps.secrets.outcome == 'success' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nim
|
- name: Install Nimble via choosenim
|
||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
run: |
|
||||||
uses: iffy/install-nim@v5
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
|
||||||
with:
|
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
|
||||||
version: binary:2.2.4
|
nim --version
|
||||||
|
nimble --version
|
||||||
- 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: Build binaries
|
- name: Build binaries
|
||||||
id: build
|
id: build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user