Skip to content

Commit

Permalink
fix CI; add separate CI to check docs; update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Clonkk committed Sep 16, 2024
1 parent d0fe81c commit d0dbebb
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
- run: nimble install -y
- run: testament p "tests/t*.nim"
- run: nimble test
- run: nimble gendoc

22 changes: 22 additions & 0 deletions .github/workflows/docstest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
branches:
- master
push:
branches:
- devel
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: stable
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -y
- run: nimble gendoc

13 changes: 2 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# Trick to ignore extension-less binaries
# Ignore all
*

# Unignore all with extensions
!*.*

# Unignore all dirs
!*/

htmldocs

docs/
!docs/index.html
bin
testresults/
nimcache/
4 changes: 1 addition & 3 deletions config.nims
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
when not compiles(nimVersion):
const nimVersion = (major: NimMajor, minor: NimMinor, patch: NimPatch)

when nimVersion >= (1, 3, 3):
# https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322
switch("backend", "cpp")
switch("backend", "cpp")

when defined(macosx):
switch("cc", "gcc")
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE HTML>

<html>

<head>
Expand Down
11 changes: 10 additions & 1 deletion tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
bin
# Trick to ignore extension-less binary
# *
# !*.*

bin/
# List of tests
tstring
tvector
tcomplex
tpair
tsmart_ptrs
tdestructor_codegen_bug
3 changes: 2 additions & 1 deletion tests/config.nims
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
switch("path", "$projectDir/..")
# switch("cc", "clang")
switch("backend", "cpp")
switch("cc", "gcc")
when not defined(testing):
switch("outdir", "tests/bin")

switch("cc", "gcc")

0 comments on commit d0dbebb

Please sign in to comment.