mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-11 10:23:06 +00:00
ci - 5
This commit is contained in:
parent
1440a78da5
commit
7e6ac9386c
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -69,11 +69,8 @@ jobs:
|
||||
nimble-version: '0.16.3'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Nim
|
||||
run: nimble setup --accept
|
||||
|
||||
- name: Make update
|
||||
run: make update -j
|
||||
- name: Setup dependencies
|
||||
run: make update
|
||||
|
||||
- name: Build binaries
|
||||
run: make V=1 QUICK_AND_DIRTY_COMPILER=1 all tools
|
||||
@ -106,11 +103,8 @@ jobs:
|
||||
nimble-version: '0.16.3'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Nim
|
||||
run: nimble setup --accept
|
||||
|
||||
- name: Make update
|
||||
run: make update -j
|
||||
- name: Setup dependencies
|
||||
run: make update
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
@ -169,12 +163,8 @@ jobs:
|
||||
nimble-version: '0.16.3'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Nim
|
||||
run: nimble setup --accept
|
||||
|
||||
- name: Build nph
|
||||
run: |
|
||||
make build-nph
|
||||
- name: Setup dependencies
|
||||
run: make update
|
||||
|
||||
- name: Check nph formatting
|
||||
run: |
|
||||
|
||||
16
Makefile
16
Makefile
@ -86,13 +86,12 @@ waku.nims:
|
||||
|
||||
# Update dependencies using Nimble
|
||||
# This is the ONLY target that should install/update Nimble packages
|
||||
# Uses nimble.lock for reproducible builds (Nim version + all dependencies locked)
|
||||
update: | waku.nims
|
||||
@echo -e $(INFO_MSG) "Updating vendor submodules..."
|
||||
git submodule update --init --recursive
|
||||
@echo -e $(INFO_MSG) "Installing/updating Nimble dependencies..."
|
||||
nimble install --depsOnly -y
|
||||
@echo -e $(INFO_MSG) "Setting up Nimble paths..."
|
||||
nimble setup
|
||||
@echo -e $(INFO_MSG) "Setting up Nim and dependencies from nimble.lock..."
|
||||
nimble setup --accept
|
||||
@echo -e $(INFO_MSG) "Building nph formatter..."
|
||||
$(MAKE) build-nph
|
||||
@echo -e $(INFO_MSG) "Update complete!"
|
||||
@ -335,13 +334,8 @@ NPH_NIMBLE := $(NIMBLE_BIN_DIR)/nph
|
||||
|
||||
build-nph: | build deps
|
||||
ifeq ("$(wildcard $(NPH))","")
|
||||
@echo -e $(INFO_MSG) "Installing nph via Nimble..."
|
||||
nimble install -y nph
|
||||
@# copy binary next to Nim compiler if not already there
|
||||
@if [ ! -f "$(NPH)" ]; then \
|
||||
NPH_INSTALLED=$$(command -v nph 2>/dev/null || true); \
|
||||
[ -n "$$NPH_INSTALLED" ] && cp "$$NPH_INSTALLED" "$(NPH)"; \
|
||||
fi
|
||||
@echo -e $(INFO_MSG) "Building nph from locked dependencies..."
|
||||
cd $(shell nimble path nph) && nim c -d:release -o:$(NPH) src/nph.nim
|
||||
@echo "nph utility is available at $(NPH)"
|
||||
else
|
||||
@echo "nph utility already exists at $(NPH)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user