-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust CI to handle build executables for supported platforms #176
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[submodule "third-party/vcpkg"] | ||
path = compiler+runtime/third-party/vcpkg | ||
url = https://github.com/jank-lang/vcpkg.git | ||
path = compiler+runtime/third-party/vcpkg | ||
url = https://github.com/jank-lang/vcpkg.git | ||
[submodule "compiler+runtime/third-party/folly"] | ||
path = compiler+runtime/third-party/folly | ||
url = https://github.com/jank-lang/folly.git | ||
path = compiler+runtime/third-party/folly | ||
url = https://github.com/jank-lang/folly.git | ||
[submodule "compiler+runtime/third-party/bpptree"] | ||
path = compiler+runtime/third-party/bpptree | ||
url = https://github.com/jank-lang/BppTree.git | ||
path = compiler+runtime/third-party/bpptree | ||
url = https://github.com/jank-lang/BppTree.git | ||
[submodule "compiler+runtime/third-party/fmt"] | ||
path = compiler+runtime/third-party/fmt | ||
url = https://github.com/jank-lang/fmt.git | ||
path = compiler+runtime/third-party/fmt | ||
url = https://github.com/jank-lang/fmt.git | ||
[submodule "compiler+runtime/third-party/immer"] | ||
path = compiler+runtime/third-party/immer | ||
url = https://github.com/jank-lang/immer.git | ||
path = compiler+runtime/third-party/immer | ||
url = https://github.com/jank-lang/immer.git | ||
[submodule "compiler+runtime/third-party/cli11"] | ||
path = compiler+runtime/third-party/cli11 | ||
url = https://github.com/jank-lang/CLI11.git | ||
path = compiler+runtime/third-party/cli11 | ||
url = https://github.com/jank-lang/CLI11.git | ||
[submodule "compiler+runtime/third-party/libzippp"] | ||
path = compiler+runtime/third-party/libzippp | ||
url = https://github.com/jank-lang/libzippp.git | ||
path = compiler+runtime/third-party/libzippp | ||
url = https://github.com/jank-lang/libzippp.git | ||
[submodule "compiler+runtime/third-party/boost-preprocessor"] | ||
path = compiler+runtime/third-party/boost-preprocessor | ||
url = https://github.com/jank-lang/boost-preprocessor.git | ||
path = compiler+runtime/third-party/boost-preprocessor | ||
url = https://github.com/jank-lang/boost-preprocessor.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,6 +264,8 @@ include(cmake/dependency/fmt.cmake) | |
include(cmake/dependency/libzippp.cmake) | ||
|
||
find_package(OpenSSL REQUIRED COMPONENTS Crypto) | ||
set(Boost_USE_STATIC_LIBS ON) | ||
set(Boost_USE_STATIC_RUNTIME OFF) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the static runtime? Will you please put it as a comment so I can also know in 6 months when I ask myself the same thing? 😂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can actually remove that, thanks for spotting |
||
find_package(Boost CONFIG REQUIRED COMPONENTS filesystem) | ||
find_package(BDWgc REQUIRED) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
export OS_NAME=$(uname | tr "[:upper:]" "[:lower:]") | ||
export FOLDER=jank-${OS_NAME}-$(uname -m) | ||
export DESTDIR=$(pwd)/${FOLDER} | ||
./bin/install | ||
|
||
cp -R ${DESTDIR} . | ||
|
||
tar czf ${DESTDIR}.tar.gz ${FOLDER}/ | ||
echo "archive=${DESTDIR}.tar.gz" >> $GITHUB_OUTPUT |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,11 @@ | |
set -euo pipefail | ||
|
||
success=true | ||
clang_format="./build/llvm-install/usr/local/bin/clang-format" | ||
if [[ -e "./build/llvm-install" ]]; then | ||
clang_format="./build/llvm-install/usr/local/bin/clang-format" | ||
else | ||
clang_format="$(command -v clang-format)" | ||
fi | ||
Comment on lines
+6
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please drop the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth adding an editorconfig file, I can add also if you want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Up to you if it's worth it. |
||
|
||
while IFS= read -r -d '' file | ||
do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very odd to see changes in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs to spaces. My editor converts them automatically on save.