-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix CI; add separate CI to check docs; update gitignore
- Loading branch information
Showing
7 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,4 @@ jobs: | |
- run: nimble install -y | ||
- run: testament p "tests/t*.nim" | ||
- run: nimble test | ||
- run: nimble gendoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!DOCTYPE HTML> | ||
|
||
<html> | ||
|
||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |