-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added automatic build Numbers. Part of #73
- Loading branch information
1 parent
858581f
commit 665a8b9
Showing
3 changed files
with
15 additions
and
4 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 |
---|---|---|
|
@@ -3,8 +3,8 @@ on: | |
push: | ||
pull_request: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
contents: read|write | ||
pull-requests: read|write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -21,5 +21,13 @@ jobs: | |
run: nim release | ||
- name: 'Install Figlet' | ||
run: sudo apt-get install figlet | ||
- name: 'Test Catnip' | ||
- name: 'Run Tests' | ||
run: cd tests && ./test.sh | ||
- name: 'Add build Number' | ||
run: echo 'const BUILDNUMBER = "${{ github.run_id }}"' > ./src/catniplib/global/buildnum.nim | ||
- name: 'Push build Number' | ||
run: | | ||
git config --global user.name 'iinsertNameHere' | ||
git config --global user.email '[email protected]' | ||
git commit -am "Automatic build Number update" | ||
git push |
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
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 @@ | ||
const BUILDNUMBER* = "N/A" |