-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8a6778
commit c313d4d
Showing
3 changed files
with
442 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.