Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 11, 2024
1 parent d8a6778 commit c313d4d
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 374 deletions.
33 changes: 33 additions & 0 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Dependencies action"
description: "Reusable action that sets up dependencies for the ACTS CI build"
# inputs:
# example_input:
# description: "An example input"
# required: true
# default: "Hello, World!"
# outputs:
# example_output:
# description: "An example output"
runs:
using: "composite"
steps:
- name: Set up Spack
uses: spack/setup-spack@v2

- name: Apply spack patch
shell: bash
working-directory: spack
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
curl https://patch-diff.githubusercontent.com/raw/spack/spack/pull/47370.patch | git am
- name: Locate OpenGL
shell: bash
run: ./opengl.sh

# - name: Setup Xcode version
# if: startsWith(inputs.os, 'macos')
# uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: "${{ inputs.xcode }}"
33 changes: 33 additions & 0 deletions .github/actions/dependencies/opengl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -u
set -e

source detect_os.sh

packages_file=${GITHUB_WORKSPACE}/spack/etc/spack/packages.yaml

if [ "$os" == "ubuntu" ]; then
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev
cat <<EOF > "$packages_file"
packages:
opengl:
buildable: false
externals:
- prefix: /usr/
spec: [email protected]
EOF
cat "$packages_file"
elif [ "$os" == "almalinux" ]; then
dnf install -y mesa-libGLU
cat <<EOF > "$packages_file"
packages:
opengl:
buildable: false
externals:
- prefix: /usr/
spec: [email protected]
EOF
cat "$packages_file"
fi
Loading

0 comments on commit c313d4d

Please sign in to comment.