-
Couldn't load subscription status.
- Fork 274
GitHub build ci #577
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
base: master
Are you sure you want to change the base?
GitHub build ci #577
Conversation
b4b02a0 to
2ce512d
Compare
|
for issue #534 |
|
Would be nice to run the tests too. |
test-index in ccls seem to need clang-6 but I can`t work out with mac, can you help with that? |
|
Will check later, yes |
b299069 to
de800eb
Compare
2ce512d to
ca04320
Compare
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.
Please also correct commit message from "add github ci integrated" to something more verbose like:
Add github CI integration.
CI will be responsible for compiling source code and code formatting.
.github/workflows/build_linux.yaml
Outdated
| - name: clone submodule | ||
| run: git submodule update --init --recursive | ||
| - name: cmake generate | ||
| run: cmake -H. -Bbuild/Debug |
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.
cmake -H. -Bbuild/Debug -DCMAKE_BUILD_TYPE=DebugThere 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.
fixed
.github/workflows/build_linux.yaml
Outdated
| - name: cmake generate | ||
| run: cmake -H. -Bbuild/Debug | ||
| - name: make | ||
| run: make -C build/Debug -j |
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.
cmake --build ./build/Debug
.github/workflows/build_linux.yaml
Outdated
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: install depend | ||
| run: sudo apt install clang libclang-9-dev |
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.
DEBIAN_FRONTEND="noninteractive" sudo apt -y install clang libclang-9-devThere 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.
please correct this line.
.github/workflows/build_mac.yaml
Outdated
| - name: clone submodule | ||
| run: git submodule update --init --recursive | ||
| - name: cmake generate | ||
| run: cmake -H. -Bbuild/Debug -DClang_DIR=/usr/local/opt/llvm/lib/cmake/clang -DLLVM_DIR=/usr/local/opt/llvm/lib/cmake |
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.
cmake -H. -Bbuild/Debug -DClang_DIR=/usr/local/opt/llvm/lib/cmake/clang -DLLVM_DIR=/usr/local/opt/llvm -DCMAKE_BUILD_TYPE=DebugThere 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.
Also you may wrap this line so it wont be exceed 120 characters.
.github/workflows/build_mac.yaml
Outdated
| - name: cmake generate | ||
| run: cmake -H. -Bbuild/Debug -DClang_DIR=/usr/local/opt/llvm/lib/cmake/clang -DLLVM_DIR=/usr/local/opt/llvm/lib/cmake | ||
| - name: make | ||
| run: make -C build/Debug -j |
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.
cmake --build ./build/Debug46eb5a3 to
11c9884
Compare
CI will be responsible for compiling source code and code formatting.
5d35dbe to
a4e7b93
Compare
all suggest has accepted |
7818055 to
99f0b40
Compare
|
Imo you should do Release builds instead to be able to publish them. |
|
@Trass3r @findNextStep |
a33231a to
cb08df4
Compare
ee29996 to
feb153a
Compare
94ba2b3 to
c018bce
Compare
|
How about adding a basic Github CI at the beginning, and try to add further CI workflows in further PRs? IHMO a working CI could not only run unit tests, but also be an example of how to build and install this project, as a supplement of the docs. I'd like to take over this PR if it has been stalled |
db890d4 to
cc13ced
Compare
e403622 to
cfc7c02
Compare
add github ci integrated
include
I format some code for clang-format ci check