Skip to content

Commit

Permalink
update ci (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek authored Jan 20, 2024
1 parent b003aee commit ea98703
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
#os: ['macos-latest', 'ubuntu-latest']
os: ['ubuntu-latest']
compiler:
- name: nim
version: devel
#- name: nim
# version: version-2-0
- name: nim
version: version-1-6
- name: nim
Expand Down Expand Up @@ -92,7 +96,7 @@ jobs:
with:
path: ci/libgit2
repository: libgit2/libgit2
ref: v1.5.0
ref: v1.7.1

- name: Setup libgit2
shell: bash
Expand All @@ -118,7 +122,7 @@ jobs:
./nimph doctor || true
cat nim.cfg
cd `./nimph path balls`
nim c --out:$HOME/balls --define:release balls.nim
nim c --out:$HOME/balls balls.nim
cd -
echo "remove nim's config.nims...?"
ls -l `dirname \`which nim\``/../config/
Expand All @@ -137,8 +141,8 @@ jobs:
nim c --define:libgit2Lib="$libgit2Lib" --passC:"-I$(pwd)/libgit2/include" --define:ssl -r tests/test.nim
nim c --define:libgit2Lib="$libgit2Lib" --passC:"-I$(pwd)/libgit2/include" --define:ssl --define:release -r tests/test.nim
- name: Build docs
if: ${{ matrix.docs }} == 'true'
- name: Docs
if: matrix.compiler.version == 'version-1-6'
shell: bash
run: |
cd ci
Expand All @@ -157,10 +161,10 @@ jobs:
# Ignore failures for older Nim
cp docs/{the,}index.html || true
- name: Publish docs
- name: Pages
if: >
github.event_name == 'push' && github.ref == 'refs/heads/master' &&
matrix.os == 'ubuntu-latest' && matrix.nim == 'version-1-6'
matrix.os == 'ubuntu-latest' && matrix.compiler.version == 'version-1-6'
uses: crazy-max/ghaction-github-pages@v1
with:
build_dir: ci/docs
Expand Down

0 comments on commit ea98703

Please sign in to comment.