Skip to content
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

ci: Spack #3980

Draft
wants to merge 123 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
1c21658
chore: Update .gitignore
paulgessinger Dec 11, 2024
224e13a
remove some workflows temporarily
paulgessinger Dec 11, 2024
209298a
test
paulgessinger Dec 11, 2024
b1ca7e4
use correct folder
paulgessinger Dec 11, 2024
e35480b
prog
paulgessinger Dec 11, 2024
f1a8140
add missing file
paulgessinger Dec 11, 2024
cacea4f
script_dir
paulgessinger Dec 11, 2024
b3a618d
maybe sudo
paulgessinger Dec 11, 2024
33b98fd
download lock file
paulgessinger Dec 11, 2024
9bf83d5
run the install
paulgessinger Dec 11, 2024
3b2073b
don't activate
paulgessinger Dec 11, 2024
44d4ae6
named
paulgessinger Dec 11, 2024
af175e7
add the build cache
paulgessinger Dec 11, 2024
0310289
add some other jobs
paulgessinger Dec 11, 2024
2722f2b
correct xcode version
paulgessinger Dec 11, 2024
701b72e
lock to xcode 16.1.0
paulgessinger Dec 11, 2024
3976a2d
another error
paulgessinger Dec 11, 2024
d7e7038
print folder, create env
paulgessinger Dec 12, 2024
9363828
add view creation
paulgessinger Dec 12, 2024
2bebf9a
get g4 data
paulgessinger Dec 12, 2024
ce5c656
different root detection mechanism
paulgessinger Dec 12, 2024
d668d2d
other env mechanism
paulgessinger Dec 12, 2024
cf25749
get python going
paulgessinger Dec 12, 2024
2997210
paths
paulgessinger Dec 12, 2024
bed013f
debug
paulgessinger Dec 12, 2024
4b6950c
make python stuff later
paulgessinger Dec 12, 2024
dd74b87
more debug
paulgessinger Dec 12, 2024
c00bfd6
different way of setting PATH
paulgessinger Dec 12, 2024
b3906ef
enable build
paulgessinger Dec 12, 2024
cfe63f7
set CMake prefix path
paulgessinger Dec 12, 2024
801f2bc
additional variables
paulgessinger Dec 12, 2024
34df3ac
use more CPUs to install
paulgessinger Dec 12, 2024
bc656cc
add timing
paulgessinger Dec 12, 2024
2348381
try better parallel
paulgessinger Dec 13, 2024
24a4542
number
paulgessinger Dec 13, 2024
3f8dfa3
make parallel script executable
paulgessinger Dec 13, 2024
a8a703d
higher count on install from buildcache
paulgessinger Dec 13, 2024
649f487
separate concretize
paulgessinger Dec 13, 2024
5324c33
install combo
paulgessinger Dec 13, 2024
fb2dbd8
correct tag
paulgessinger Dec 13, 2024
642796f
don't overlap the install
paulgessinger Dec 13, 2024
e079196
i don't understand the spec
paulgessinger Dec 13, 2024
1573b51
move all to a script
paulgessinger Dec 13, 2024
3b66c79
run
paulgessinger Dec 13, 2024
727793c
all
paulgessinger Dec 13, 2024
40bd378
set it up if we just installed it
paulgessinger Dec 13, 2024
1a1e686
correct tag
paulgessinger Dec 13, 2024
ca296d0
diagnostics
paulgessinger Dec 13, 2024
d4a6024
use the right python
paulgessinger Dec 13, 2024
9bea0f0
diag
paulgessinger Dec 13, 2024
d7b977e
output filter
paulgessinger Dec 13, 2024
040bd65
limit parallel
paulgessinger Dec 13, 2024
f49d927
update tag
paulgessinger Dec 13, 2024
aa7a305
quotes
paulgessinger Dec 13, 2024
f2f0363
long spec output
paulgessinger Dec 13, 2024
73bbd8c
see if the other builds work
paulgessinger Dec 13, 2024
197c57d
fix: Use toUnderlying to avoid cross-enum comparison
paulgessinger Dec 13, 2024
cb071d4
Merge branch 'main' into spack-ci
paulgessinger Dec 13, 2024
926e53d
Revert "fix: Use toUnderlying to avoid cross-enum comparison"
paulgessinger Dec 13, 2024
f6e9869
refactor: Add new concepts for Eigen types
stephenswat Dec 7, 2024
8dcc12e
update concepts with toUnderlying
paulgessinger Dec 13, 2024
5b22555
another compile fix
paulgessinger Dec 14, 2024
9a9bb86
be smarter about selecting a compiler
paulgessinger Dec 15, 2024
f346015
use the compiler in cmake
paulgessinger Dec 15, 2024
3fa0207
handle empty argument
paulgessinger Dec 15, 2024
bebf290
detect g++
paulgessinger Dec 15, 2024
9060ae7
b5
paulgessinger Dec 16, 2024
67f1685
fix opengl detection
paulgessinger Dec 16, 2024
25e8e41
fix glob
paulgessinger Dec 16, 2024
0323fc8
family
paulgessinger Dec 16, 2024
f0f2572
opengl
paulgessinger Dec 16, 2024
8ee96b4
wrap script in action
paulgessinger Dec 16, 2024
b70b0f7
explicit token
paulgessinger Dec 16, 2024
0144c90
action
paulgessinger Dec 16, 2024
bea93d4
shell
paulgessinger Dec 16, 2024
8771d43
use runner os
paulgessinger Dec 16, 2024
463e14f
update tag
paulgessinger Dec 19, 2024
f2c5601
dedupe matrix cache keys
paulgessinger Dec 19, 2024
cee6d44
remove remnant
paulgessinger Dec 19, 2024
6f3ce37
see if we still need to supply the python interpreter
paulgessinger Dec 19, 2024
8cf4c48
change path ordering
paulgessinger Dec 19, 2024
7f89ef8
we need it in macos at least
paulgessinger Dec 19, 2024
0d01f2f
let's try to cache the spack checkout
paulgessinger Dec 19, 2024
b9f4c64
yaml error
paulgessinger Dec 19, 2024
04c4235
compress before installing, rebase
paulgessinger Dec 19, 2024
ebd27cb
better compression
paulgessinger Dec 19, 2024
88621b6
repack?
paulgessinger Dec 19, 2024
14c520f
actually, set up with update
paulgessinger Dec 19, 2024
6ae61f2
shuffle
paulgessinger Dec 19, 2024
53daaef
need to do it after we did the environment
paulgessinger Dec 19, 2024
57d9856
exclude tarball
paulgessinger Dec 19, 2024
07f45ab
drop the caching again
paulgessinger Dec 19, 2024
afe5e73
path python macos
paulgessinger Dec 20, 2024
5e76eb4
tmate
paulgessinger Dec 20, 2024
dad7b0a
other tmate
paulgessinger Dec 20, 2024
713b425
point cmakeprefixpath at venv dir
paulgessinger Dec 20, 2024
f308325
chain updates
paulgessinger Dec 20, 2024
cf22ce3
system site packages?
paulgessinger Dec 20, 2024
d36b9d5
install base python packages
paulgessinger Dec 20, 2024
31ff1e3
tmae macos
paulgessinger Dec 20, 2024
d249cff
add ptyhon find framework directive
paulgessinger Dec 20, 2024
7fa9c36
no tmate
paulgessinger Dec 20, 2024
0a79be8
location strategy
paulgessinger Dec 20, 2024
79670bf
see if policy also works
paulgessinger Dec 20, 2024
2d89ca1
more general CMAKE_FIND_FRAMEWORK
paulgessinger Dec 20, 2024
730415f
collect all policy settings in one place
paulgessinger Dec 20, 2024
994c585
run downstream jobs
paulgessinger Dec 20, 2024
e8dea25
update hashes due to G4 version change
paulgessinger Dec 20, 2024
655f0be
include more in the cache key
paulgessinger Dec 20, 2024
6f9827a
try spack caching again
paulgessinger Dec 20, 2024
f7ffaa4
syntax
paulgessinger Dec 20, 2024
1eae13d
tag fix
paulgessinger Dec 20, 2024
ba00215
switch repo, no patches
paulgessinger Dec 20, 2024
2a95037
special branch
paulgessinger Dec 20, 2024
bc646c8
single cache key
paulgessinger Dec 20, 2024
0fb7744
let's keep the .spack directory as well
paulgessinger Dec 20, 2024
d98a6c6
namwes, shuffle
paulgessinger Dec 20, 2024
a386260
binary path
paulgessinger Dec 20, 2024
eff06a3
no zstd install
paulgessinger Dec 20, 2024
a1135c7
key issue?
paulgessinger Dec 20, 2024
6ea6ae3
trigger
paulgessinger Dec 20, 2024
b477ff3
restore key?
paulgessinger Dec 20, 2024
10360fa
keys?
paulgessinger Dec 20, 2024
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
78 changes: 78 additions & 0 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: 'Dependencies'
description: 'Install dependencies from lockfile'

inputs:
compiler:
description: 'Compiler to use'
required: false
default: ''
GITHUB_TOKEN:
description: 'Secrets to pass to the action'
required: false
default: ''
spack_version:
description: 'Version of Spack to use'
required: false
default: 'develop-acts'

runs:
using: 'composite'
steps:
- name: Prerequisites
if: startsWith(runner.os, 'macos')
shell: bash
run: |
brew install ninja ccache

- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v3
with:
path: spack.tar.zst
key: spack-r1-${{ inputs.spack_version }}-${{ hashFiles('CI/dependencies/setup_spack.sh') }}-${{ github.sha }}
restore-keys: |
spack-r1-${{ inputs.spack_version }}-${{ hashFiles('CI/dependencies/setup_spack.sh') }}

- name: Extract cached Spack
if: steps.cache-restore.outputs.cache-hit == 'true'
shell: bash
run: |
tar xf spack.tar
tar xf -C ~ spack_cache.tar
rm spack.tar
rm spack_cache.tar

- name: Setup Spack from scratch
if: steps.cache-restore.outputs.cache-hit != 'true'
shell: bash
env:
SPACK_VERSION: ${{ inputs.spack_version }}
run: |
CI/dependencies/setup_spack.sh
spack/bin/spack list > /dev/null
rm -rf spack/.git
tar cf spack.tar spack/
tar cf spack_cache.tar -C ~ .spack

- name: Save cache
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: |
spack.tar
spack_cache.tar
key: spack-r1-${{ inputs.spack_version }}-${{ hashFiles('CI/dependencies/setup_spack.sh') }}-${{ github.sha }}

- name: Install dependencies
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
pwd
if [ -n "${{ inputs.compiler }}" ]; then
echo "With compiler"
CI/dependencies/setup.sh -c "${{ inputs.compiler }}"
else
echo "Without compiler"
CI/dependencies/setup.sh
fi
145 changes: 0 additions & 145 deletions .github/workflows/analysis.yml

This file was deleted.

Loading
Loading