-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add compile_herolib.sh, use it to make sure it keeps working (rel…
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
function show() { | ||
printf "\u001b[35m$1\u001b[0m\n" | ||
} | ||
|
||
rm -rf herolib/ | ||
|
||
show "Clone https://github.com/freeflowuniverse/herolib" | ||
v retry -- git clone --filter=blob:none --quiet https://github.com/freeflowuniverse/herolib herolib | ||
cd herolib | ||
git checkout development | ||
|
||
mkdir -p ~/.vmodules/freeflowuniverse | ||
ln -s $(pwd)/lib ~/.vmodules/freeflowuniverse/herolib | ||
cd cli | ||
|
||
show "Checkout last known good commit" | ||
git checkout fa0dac57ec218c0d65e0e8d5bba45ba2fd28d3d7 | ||
|
||
v wipe-cache | ||
show "Build project no parallel (gcc)" | ||
v -cc gcc -cg -enable-globals -w -n hero.v | ||
show "Checking build" | ||
ls -l ./hero | ||
|
||
v wipe-cache | ||
show "Build project no parallel (clang)" | ||
v -cc clang -cg -enable-globals -w -n hero.v | ||
show "Checking build" | ||
ls -l ./hero | ||
|
||
v wipe-cache | ||
show "Build project with -parallel-cc (clang)" | ||
v -cc clang -cg -enable-globals -parallel-cc -w -n hero.v | ||
show "Checking gcc build" | ||
ls -l ./hero | ||
|
||
v wipe-cache | ||
show "Build project with -parallel-cc (gcc)" | ||
v -cc gcc -cg -enable-globals -parallel-cc -w -n hero.v | ||
show "Checking clang build" | ||
ls -l ./hero | ||
|
||
rm -rf ../../herolib |
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