Skip to content

Commit

Permalink
Install dependencies at the OS level
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Jan 31, 2024
1 parent df749a6 commit 3dfbc2e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
self-hosted-runner:
labels:
- macos-14
6 changes: 5 additions & 1 deletion .github/workflows/build-spack-nodeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-13
- macos-14
version:
- '13.1.0'
- 'master'
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Update system software
run: |
bash .github/workflows/install_os_deps.sh
- name: Clone Spack
uses: actions/checkout@v4
with:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/install_os_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# install_os_deps.sh: Install dependencies at the operating system level
# needed for GitHub CI runs.

set -euo pipefail

if command -v brew; then
brew list
# Problems with Python overwriting files in /usr/local/bin
# brew update
# brew upgrade
brew install automake
elif command -v apt-get; then
sudo apt-get -y --no-install-recommends update
sudo apt-get -y --no-install-recommends install \
libncurses-dev
fi
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ repos:
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix, "lf"]
- id: no-commit-to-branch
args: [--branch, main, --branch, master, --branch, devel]
# - id: no-commit-to-branch
# args: [--branch, main, --branch, master, --branch, devel]
- id: trailing-whitespace
- repo: https://github.com/adrienverge/yamllint
rev: "v1.33.0"
Expand All @@ -27,3 +27,12 @@ repos:
rev: "v1.6.26.11"
hooks:
- id: actionlint
additional_dependencies: [shellcheck-py>=0.9.0.6]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.6"
hooks:
- id: shellcheck
# - repo: https://github.com/rhysd/actionlint
# rev: v1.6.26
# hooks:
# - id: actionlint

0 comments on commit 3dfbc2e

Please sign in to comment.