-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.54 KB
/
macos.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
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: macos
on:
push:
branches: [ master ]
pull_request:
paths-ignore:
- .github/workflows/test.yml
- .github/workflows/docker.yml
- .github/workflows/ubuntu.yml
- .github/workflows/windows.yml
- Makefile.win
jobs:
test-macos:
name: Test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Cache xml2rfc
id: cache-xml2rfc
uses: actions/cache@v1
with:
path: ~/.cache/xml2rfc
key: xml2rfc
restore-key: xml2rfc
- name: Use Metanorma
run: |
brew update
brew install yq
brew install https://raw.githubusercontent.com/metanorma/homebrew-metanorma/master/Formula/metanorma.rb
metanorma version
- name: Setup Fonts
run: |
metanorma setup --agree-to-terms
- name: Install bundler
run: |
sudo gem install bundler
- name: Metanorma compile
env:
JAVA_OPTS: "java.awt.headless=true"
run: |
source $(brew --prefix metanorma)/libexec/venv/bin/activate
make clean all