-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from Solitude-Software-Solutions/Pre_Rel_v0.6…
….0_dev Pre Rel v0.6.0
- Loading branch information
Showing
41 changed files
with
4,022 additions
and
2,724 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: OstrichDB CI | ||
|
||
on: | ||
push: | ||
branches: [ "main", "development" ] | ||
pull_request: | ||
branches: [ "main", "development" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Odin | ||
run: | | ||
git clone https://github.com/odin-lang/Odin | ||
cd Odin | ||
make | ||
- name: Add Odin to PATH | ||
run: echo "${GITHUB_WORKSPACE}/Odin" >> $GITHUB_PATH | ||
|
||
- name: Make CI build script executable | ||
run: chmod +x scripts/ci-build.sh | ||
|
||
- name: Run CI build script | ||
run: | | ||
cd scripts | ||
./ci-build.sh |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ ols.json | |
.exe | ||
.out | ||
.vscode | ||
.vs | ||
.DS_Store | ||
|
||
# Uncomment these two when actually implementing zig | ||
|
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
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,29 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory of this script | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# Change to the project root directory | ||
cd "$DIR/.." | ||
|
||
# Change to the src directory | ||
cd src | ||
|
||
# Build the project in the src directory | ||
odin build main | ||
|
||
# Check if build was successful | ||
if [ $? -eq 0 ]; then | ||
echo "$(tput setaf 2)Build successful$(tput sgr0)" | ||
|
||
# Try to create bin directory and move the executable | ||
if mkdir -p ../bin 2>/dev/null && mv main.bin ../bin/ 2>/dev/null; then | ||
echo "$(tput setaf 2)Successfully moved executable to bin directory$(tput sgr0)" | ||
else | ||
echo "$(tput setaf 1)Could not move executable to bin directory$(tput sgr0)" | ||
exit 1 | ||
fi | ||
else | ||
echo "$(tput setaf 1)Build failed$(tput sgr0)" | ||
exit 1 | ||
fi |
Oops, something went wrong.