Skip to content

Commit

Permalink
groot: bump to ROOT-6.26/00
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed Mar 10, 2022
1 parent 6f88941 commit e6d5f90
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
GOPROXY: "https://proxy.golang.org"
ROOT_VERSION: "6.24.00"
ROOT_VERSION: "6.26.00"
TAGS: "-tags=ci"
COVERAGE: "-coverpkg=go-hep.org/x/hep/..."
EGL_PLATFORM: "x11"
Expand Down
18 changes: 11 additions & 7 deletions ci/build-cxx-root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func main() {
log.SetPrefix("")
log.SetFlags(0)

rvers := flag.String("root-version", "6.24.00", "ROOT version to build")
rvers := flag.String("root-version", "6.26.00", "ROOT version to build")
nproc := flag.Int("j", runtime.NumCPU(), "number of parallel build processes")

flag.Parse()
Expand Down Expand Up @@ -56,11 +56,13 @@ func build(rvers string, nproc int) {
}

cmd := exec.Command("docker", "run", "--rm",
"--network=host",
"-v", fname+":/build.sh",
"-v", bdir+":/build/src",
"-v", dst+":/build/install",
"ubuntu:bionic", "/bin/sh", "/build.sh",
"ubuntu:20.04", "/bin/sh", "/build.sh",
)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

Expand Down Expand Up @@ -90,12 +92,14 @@ const docker = `#!/bin/sh
set -e
set -x
apt-get update -y
apt-get install -y -q \
export DEBIAN_FRONTEND=noninteractive
apt update -yq
apt install -yq \
cmake curl \
g++ git \
python \
;
g++ git \
python \
;
export ROOT_VERSION="%[1]s"
Expand Down
6 changes: 4 additions & 2 deletions ci/install-cxx-root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ func main() {
log.SetPrefix("")
log.SetFlags(0)

rvers := flag.String("root-version", "6.24.00", "ROOT version to install")
odir := flag.String("o", "", "install directory for ROOT")
var (
rvers = flag.String("root-version", "6.26.00", "ROOT version to install")
odir = flag.String("o", "", "install directory for ROOT")
)

flag.Parse()

Expand Down
10 changes: 7 additions & 3 deletions groot/gen.rboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,17 @@ void genstreamers(const char* fname) {
log.Fatalf("missing streamers: got=%d, want=%d", got, want)
}

f, err := os.Create("rdict/cxx_root_streamers_gen.go")
var (
fname = "rdict/cxx_root_streamers_gen.go"
year = genroot.ExtractYear(fname)
)
f, err := os.Create(fname)
if err != nil {
log.Fatal(err)
}
defer f.Close()

_, err = f.Write([]byte(`// Copyright ©2022 The go-hep Authors. All rights reserved.
_, err = f.Write([]byte(fmt.Sprintf(`// Copyright ©%d The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
Expand All @@ -192,7 +196,7 @@ import (
)
func init() {
`))
`, year)))
if err != nil {
log.Fatalf("could not write groot streamers header: %+v", err)
}
Expand Down
Loading

0 comments on commit e6d5f90

Please sign in to comment.