-
Notifications
You must be signed in to change notification settings - Fork 1
Add Basic CI to the project #3
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
Changes from all commits
36a8fdd
e2199f0
230be96
a4254d6
ae0ff1c
d3dfb49
b38ac09
98c491d
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main, develop] | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and Test | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v5 | ||
|
||
- name: Install ROOT | ||
run: | | ||
ROOT_URL="https://root.cern/download/root_v6.34.06.Linux-ubuntu24.04-x86_64-gcc13.3.tar.gz" | ||
wget -O root.tar.gz $ROOT_URL | ||
tar -xzf root.tar.gz -C /opt/ | ||
echo "/opt/root/bin" >> $GITHUB_PATH | ||
|
||
- name: Install build dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libvdt-dev libtbb-dev | ||
Comment on lines
+26
to
+27
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. sudo not needed I believe, since Github runner workflows are on an admin account by default 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.
|
||
|
||
- name: Configure CMake | ||
run: | | ||
source thisroot.sh | ||
mkdir build | ||
cd build | ||
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DRAMTOOLS_BUILD_TESTS=ON \ | ||
-DRAMTOOLS_BUILD_TOOLS=ON \ | ||
-DRAMTOOLS_BUILD_BENCHMARKS=OFF | ||
|
||
- name: Build | ||
run: | | ||
source thisroot.sh | ||
cd build | ||
cmake --build . --config Release -j $(nproc) | ||
|
||
- name: Run tests | ||
run: | | ||
source thisroot.sh | ||
cd build | ||
ctest --output-on-failure --build-config Release | ||
|
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.
I see that you updated to Ubuntu 24.04 , but not to root 6.36 version? There is a root_v6.36.00.Linux-ubuntu24.04-x86_64-gcc13.3.tar.gz file you can download