Skip to content

Commit

Permalink
Merge branch 'feature/build' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
maradotwebp committed Apr 18, 2022
2 parents 9e0c939 + 7cd18fe commit 974778a
Show file tree
Hide file tree
Showing 31 changed files with 22 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
nim-version: ${{ env.NIM_VERSION }}
- name: Build
run: nimble build -y -d:ssl -d:release
run: nimble build -d:release -y

test:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
nim-version: ${{ env.NIM_VERSION }}
- name: Build
run: nimble build -y -d:ssl -d:release
run: nimble build -d:release -y
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
9 changes: 0 additions & 9 deletions pax.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,3 @@ requires "zippy >= 0.6.2"

task test, "Test project":
exec "testament all"

task buildDev, "Build for usage during development":
exec "nimble build -d:ssl"

task buildProd, "Build for production":
exec "nimble build -d:ssl -d:release"

task buildCI, "Build for production on the CI machine":
exec "nimble build -d:ssl -d:release -y"
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You'll need:
* A C compiler (depending on your operating system, one might be already installed)

Clone and `cd` into the repository - and you're good to go!\
Run `nimble buildDev` to build the application for development, or run `nimble buildProd` to create an optimized release build.\
Run `nimble build` to build the application for development, or run `nimble build -d:release` to create an optimized release build.\
Execute the program with `./pax` (on Linux) or `pax.exe` (on Windows).


Expand Down
1 change: 1 addition & 0 deletions src/nim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-d:ssl
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_cffilestring.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
disabled: true
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_cfstring.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
disabled: true
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_duplicates.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
input: '''
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_multistringsearch.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
input: '''
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_projectfileids.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
input: '''
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_projectid.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
input: '''
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/tadd/tadd_search.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
input: '''
Expand Down
1 change: 0 additions & 1 deletion tests/cmd/timpo/timpo_fabric.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
batchable: false
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/timpo/timpo_forge.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
"""

Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tinit/tinit_fabric.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tinit/tinit_forge.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tinit/tinit_rejectexisting.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tlist/tlist.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
outputsub: '''
[Δ] ALL MODS (1)
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tlist/tlist_status.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
outputsub: '''
[Δ] ALL MODS (1)
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tlist/tlist_without_version.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
outputsub: '''
[Δ] ALL MODS (1)
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tpin/tpin.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tremove/tremove_with_dependency.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tremove/tremove_with_dependents.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tremove/tremove_with_explicit_dependency.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tremove/tremove_without_dependencies.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tupdate/tupdate.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tupdate/tupdate_pinned.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tupgrade/tupgrade.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tupgrade/tupgrade_pinned.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
input: '''
y
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tversion/tversion.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
output: '''
[:] Loading data from manifest..
Expand Down
3 changes: 1 addition & 2 deletions tests/cmd/tversion/tversion_latest.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file"
joinable: false
joinable: false
batchable: false
output: '''
[:] Loading data from manifest..
Expand Down

0 comments on commit 974778a

Please sign in to comment.