Skip to content

Commit

Permalink
Merge pull request #78 from yu-kiat/main
Browse files Browse the repository at this point in the history
Redid how versioning works.
  • Loading branch information
iinsertNameHere authored May 9, 2024
2 parents 215b446 + c258bed commit 0022605
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ jobs:
run: sudo apt-get install figlet
- name: 'Run Tests'
run: cd tests && ./commandline_args.sh
- name: 'Set CURRENTCOMMIT const'
run: echo 'const CURRENTCOMMIT* = "${{ github.sha }}"' > ./src/catniplib/global/currentcommit.nim
- name: 'Push changes'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "Automatic build Number update"
git push
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
catnip
*.exe
*.gz
src/catniplib/global/currentcommit.nim
2 changes: 2 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ proc configure() =

task release, "Builds the project in release mode":
echo "\e[36;1mBuilding\e[0;0m in release mode"
exec &"./tests/git-commit-id.sh"
compile(true)

task debug, "Builds the project in debug mode":
echo "\e[36;1mBuilding\e[0;0m in debug mode"
exec &"./tests/git-commit-id.sh"
compile(false)

task install_cfg, "Installs the config files":
Expand Down
1 change: 0 additions & 1 deletion src/catniplib/global/currentcommit.nim

This file was deleted.

2 changes: 2 additions & 0 deletions tests/git-commit-id.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo "const CURRENTCOMMIT* = \"$(git rev-parse HEAD)"\"\ > src/catniplib/global/currentcommit.nim

0 comments on commit 0022605

Please sign in to comment.