-
Notifications
You must be signed in to change notification settings - Fork 7
81 lines (68 loc) · 2.19 KB
/
gradle.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
name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os: [ ubuntu-22.04, windows-latest, macos-latest ]
java: [ '11', '17' ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - Java ${{ matrix.java }} build test
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Setup Environment (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install language-pack-ja-base language-pack-ja
sudo update-locale LANG=ja_JP.UTF8
sudo apt-get -y install fonts-noto* language-selector-common
export LANG=ja_JP.UTF-8
fc-cache -f
fc-match Dialog | grep "Noto Sans CJK JP"
sudo apt-get -y install graphviz
# for GitHub Actions test
sudo apt-get -y install poppler-utils
- name: Setup Environment (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install graphviz
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Gradle (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
export LANG=ja_JP.UTF-8
fc-match Dialog | grep "Noto Sans CJK JP"
./gradlew docs
- name: Build with Gradle (macOS)
if: startsWith(matrix.os, 'macos')
run: |
./gradlew docs
- name: Build with Gradle (Windows)
if: startsWith(matrix.os, 'windows')
run: |
.\gradlew docs
- name: Check
shell: bash
run: |
find docs/ -type f -ls
find docs/ -type f -ls | wc
# test asciidoctor-diagram (If you are not using diagram, comment out the next line)
find docs/ -type f -ls | egrep 'svg$'
# test asciidoctor
file docs/index.pdf | grep PDF
file docs/index.html | grep HTML
- name: Output PDF information
if: startsWith(matrix.os, 'ubuntu')
run: |
echo "# PDF information"
pdfinfo docs/index.pdf
echo "# URLs in document"
pdfinfo -url docs/index.pdf | tail -n +2 | awk '{ print $3 }' | sort | uniq