Skip to content

Commit

Permalink
ci: kira and feynrules
Browse files Browse the repository at this point in the history
NOTE: for now, it seems that linux-headers should be explicitly
installed on Ubuntu 20.04. Otherwise, building kira fails due to
missing linux/limits.h. See also, e.g.,
  Homebrew/homebrew-core#110558
  • Loading branch information
tueda committed Sep 13, 2022
1 parent 4d24b95 commit ad94b2c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ jobs:
- name: Check style
run: |
brew audit --strict --online \
tueda/loops/kira \
tueda/loops/mma-feynrules \
tueda/loops/qgraf
brew style Library
57 changes: 54 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
schedule:
- cron: 0 0 1 * * # monthly

env:
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
test:
strategy:
Expand All @@ -16,6 +19,7 @@ jobs:
- ubuntu-latest
- macos-latest
formula:
- kira
- qgraf
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -35,8 +39,55 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

# For now, this is needed to ensure linux/limits.h etc. on Ubuntu 20.04,
# e.g., https://github.com/Homebrew/homebrew-core/issues/110558
- name: Install Linux headers
if: runner.os == 'Linux'
run: brew install linux-headers

- name: Install dependencies of ${{ matrix.formula }}
run: |
brew install --only-dependencies tueda/loops/${{ matrix.formula }}
- name: Install ${{ matrix.formula }}
run: |
brew install --verbose tueda/loops/${{ matrix.formula }}
- name: Test ${{ matrix.formula }}
run: |
brew test-bot --only-cleanup-before
brew test-bot --only-setup
brew test-bot --only-formulae --skip-dependents --testing-formulae=${{ matrix.formula }}
brew test --verbose tueda/loops/${{ matrix.formula }}
install-only:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
formula:
- mma-feynrules
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- name: Install dependencies of ${{ matrix.formula }}
run: |
brew install --only-dependencies tueda/loops/${{ matrix.formula }}
- name: Install ${{ matrix.formula }}
run: |
brew install --verbose tueda/loops/${{ matrix.formula }}

0 comments on commit ad94b2c

Please sign in to comment.