Skip to content

Add very basic Makefile and GitHub Actions Workflow #41

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

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/root.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Execute ROOT macros
on:
push:
branches: 'main'
pull_request:

jobs:
root-v634:
name: ROOT 6.34
runs-on: ubuntu-latest
container: rootproject/root:6.34.00-ubuntu24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Execute ROOT macros
run: make
- name: Upload produced RNTuple ROOT files
uses: actions/upload-artifact@v4
with:
name: RNTuple-ROOT
path: "*.root"
- name: Upload produced validation JSON files
uses: actions/upload-artifact@v4
with:
name: Validation-JSON
path: "*.json"
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ROOT_EXE := $(shell which root.exe)
ifeq ($(ROOT_EXE),)
$(error Could not find root.exe)
endif

.PHONY: all
all:
$(MAKE) write
$(MAKE) read

# This assumes there is no whitespace in any of the paths...
WRITE_C := $(sort $(shell find . -name write.C))
READ_C := $(sort $(shell find . -name read.C))

.PHONY: write
write:
@$(foreach c,$(WRITE_C),$(ROOT_EXE) -q -l $(c) &&) true

.PHONY: read
read:
@$(foreach c,$(READ_C),$(ROOT_EXE) -q -l $(c) &&) true