Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ci #170

Merged
merged 7 commits into from
Jan 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading