Skip to content

Commit

Permalink
Manually install nph as before.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhartnett committed Jun 26, 2024
1 parent f6a6dc5 commit 4e7f7d5
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ on:
workflow_dispatch:

jobs:
lint:
name: "nph Lint"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2 # In PR, has extra merge commit: ^1 = PR, ^2 = base

- name: Check nph formatting
# Pin nph to a specific version to avoid sudden style differences.
# Updating nph version should be accompanied with running the new
# version on the project directory.
run: |
VERSION="v0.5.1"
ARCHIVE="nph-linux_x64.tar.gz"
curl -L "https://github.com/arnetheduck/nph/releases/download/${VERSION}/${ARCHIVE}" -o ${ARCHIVE}
tar -xzf ${ARCHIVE}
./nph .
git diff --exit-code
build:
strategy:
fail-fast: false
Expand Down Expand Up @@ -166,14 +186,6 @@ jobs:
bash build_nim.sh nim csources dist/nimble NimBinaries
echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH
- name: Check nph formatting
if: runner.os == 'Linux' && matrix.branch == 'version-2-0'
run: |
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
nimble install nph@#head
$HOME/.nimble/bin/nph .
git diff --exit-code
- name: Run tests
run: |
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
Expand Down

0 comments on commit 4e7f7d5

Please sign in to comment.