-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (80 loc) · 2.51 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: 0 0 1 * * # monthly
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
formula:
- kira
- lanhep
- qgraf
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
# 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 --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 }}