Skip to content

Commit

Permalink
move all to a script
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 13, 2024
1 parent e079196 commit 1573b51
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 253 deletions.
112 changes: 0 additions & 112 deletions .github/actions/dependencies/action.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/dependencies/detect_os.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/dependencies/with_spack_env.sh

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
lfs: true

- name: Install dependencies
uses: ./.github/actions/dependencies
uses: CI/dependencies/setup.sh

- run: env
- run: |
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
lfs: true

- name: Install dependencies
uses: ./.github/actions/dependencies
uses: CI/dependencies/setup.sh
#
# - name: Restore ccache
# uses: actions/cache/restore@v4
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
# && CI/dependencies.sh

- name: Install dependencies
uses: ./.github/actions/dependencies
uses: CI/dependencies/setup.sh
#
# - name: Restore ccache
# uses: actions/cache/restore@v4
Expand Down
103 changes: 0 additions & 103 deletions CI/dependencies.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
set -u
set -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

source ${SCRIPT_DIR}/detect_os.sh

packages_file=${GITHUB_WORKSPACE}/spack/etc/spack/packages.yaml
packages_file=$(spack location -r)/spack/etc/spack/packages.yaml

if ! command -v sudo &> /dev/null
then
Expand All @@ -16,8 +12,9 @@ else
SUDO="sudo"
fi

os=$(spack arch --platform)

if [ "$os" == "ubuntu" ]; then
if [ "$os" == ubuntu* ]; then
${SUDO} apt-get update
${SUDO} apt-get install -y libgl1-mesa-dev
cat <<EOF > "$packages_file"
Expand All @@ -29,7 +26,7 @@ packages:
spec: [email protected]
EOF
cat "$packages_file"
elif [ "$os" == "almalinux" ]; then
elif [ "$os" == almalinux* ]; then
${SUDO} dnf install -y mesa-libGLU
cat <<EOF > "$packages_file"
packages:
Expand Down
File renamed without changes.
Loading

0 comments on commit 1573b51

Please sign in to comment.