diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39a3823..cc676de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,5 +32,4 @@ jobs: - run: nimble install -y - run: testament p "tests/t*.nim" - run: nimble test - - run: nimble gendoc diff --git a/.github/workflows/docstest.yml b/.github/workflows/docstest.yml new file mode 100644 index 0000000..2ebbf7b --- /dev/null +++ b/.github/workflows/docstest.yml @@ -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 + diff --git a/.gitignore b/.gitignore index 7c73de0..9c12734 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/config.nims b/config.nims index 9b96e59..58a3899 100644 --- a/config.nims +++ b/config.nims @@ -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") diff --git a/docs/index.html b/docs/index.html index b607530..2490959 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,5 @@ + diff --git a/tests/.gitignore b/tests/.gitignore index 12718d8..23054cf 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,3 +1,12 @@ -bin +# Trick to ignore extension-less binary +# * +# !*.* + +bin/ +# List of tests tstring tvector +tcomplex +tpair +tsmart_ptrs +tdestructor_codegen_bug diff --git a/tests/config.nims b/tests/config.nims index ff62f85..869e89f 100644 --- a/tests/config.nims +++ b/tests/config.nims @@ -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")