Skip to content

Commit c001ccf

Browse files
feat: build for release
1 parent 79ea24a commit c001ccf

File tree

10 files changed

+225
-161
lines changed

10 files changed

+225
-161
lines changed

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `ts-graphviz/setup-graphviz` action
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
55

66
GitHub Action to set up Graphviz cross-platform(Linux, macOS, Windows).
@@ -39,8 +39,12 @@ you can specify a specific version for each operating system (not macOS).
3939
ubuntu-graphviz-version: '2.42.2-3build2'
4040
# libgraphviz-dev version on Ubuntu.
4141
ubuntu-libgraphvizdev-version: '2.42.2-3build2'
42+
# Skip to run apt update command on Ubuntu.
43+
ubuntu-skip-apt-update: 'true' # defalt false
4244
# graphviz version on Windows.
4345
windows-graphviz-version: '2.49.3'
46+
# Skip to run brew update command on macOS.
47+
macos-skip-brew-update: 'true' # defalt false
4448
```
4549
4650
## See Also
@@ -66,14 +70,21 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
6670
<!-- prettier-ignore-start -->
6771
<!-- markdownlint-disable -->
6872
<table>
69-
<tr>
70-
<td align="center"><a href="http://blog.kamiazya.tech/"><img src="https://avatars0.githubusercontent.com/u/35218186?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuki Yamazaki</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Code">💻</a> <a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Tests">⚠️</a> <a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Documentation">📖</a> <a href="#example-kamiazya" title="Examples">💡</a></td>
71-
<td align="center"><a href="https://github.com/mhtb32"><img src="https://avatars3.githubusercontent.com/u/24754239?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mohammad Hussein Tavakoli Bina </b></sub></a><br /><a href="#ideas-mhtb32" title="Ideas, Planning, & Feedback">🤔</a></td>
72-
<td align="center"><a href="https://smcleod.net"><img src="https://avatars.githubusercontent.com/u/862951?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam</b></sub></a><br /><a href="#maintenance-sammcj" title="Maintenance">🚧</a></td>
73-
<td align="center"><a href="https://github.com/mohawk2"><img src="https://avatars.githubusercontent.com/u/7308181?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mohawk2</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Amohawk2" title="Bug reports">🐛</a> <a href="#ideas-mohawk2" title="Ideas, Planning, & Feedback">🤔</a></td>
74-
<td align="center"><a href="https://github.com/leadelngalame1611"><img src="https://avatars.githubusercontent.com/u/39901966?v=4?s=100" width="100px;" alt=""/><br /><sub><b>leadelngalame1611</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Aleadelngalame1611" title="Bug reports">🐛</a> <a href="#ideas-leadelngalame1611" title="Ideas, Planning, & Feedback">🤔</a></td>
75-
<td align="center"><a href="https://github.com/stunney"><img src="https://avatars.githubusercontent.com/u/609012?v=4?s=100" width="100px;" alt=""/><br /><sub><b>S. Tunney</b></sub></a><br /><a href="#ideas-stunney" title="Ideas, Planning, & Feedback">🤔</a></td>
76-
</tr>
73+
<tbody>
74+
<tr>
75+
<td align="center"><a href="http://blog.kamiazya.tech/"><img src="https://avatars0.githubusercontent.com/u/35218186?v=4?s=100" width="100px;" alt="Yuki Yamazaki"/><br /><sub><b>Yuki Yamazaki</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Code">💻</a> <a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Tests">⚠️</a> <a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=kamiazya" title="Documentation">📖</a> <a href="#example-kamiazya" title="Examples">💡</a></td>
76+
<td align="center"><a href="https://github.com/mhtb32"><img src="https://avatars3.githubusercontent.com/u/24754239?v=4?s=100" width="100px;" alt="Mohammad Hussein Tavakoli Bina "/><br /><sub><b>Mohammad Hussein Tavakoli Bina </b></sub></a><br /><a href="#ideas-mhtb32" title="Ideas, Planning, & Feedback">🤔</a></td>
77+
<td align="center"><a href="https://smcleod.net"><img src="https://avatars.githubusercontent.com/u/862951?v=4?s=100" width="100px;" alt="Sam"/><br /><sub><b>Sam</b></sub></a><br /><a href="#maintenance-sammcj" title="Maintenance">🚧</a></td>
78+
<td align="center"><a href="https://github.com/mohawk2"><img src="https://avatars.githubusercontent.com/u/7308181?v=4?s=100" width="100px;" alt="mohawk2"/><br /><sub><b>mohawk2</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Amohawk2" title="Bug reports">🐛</a> <a href="#ideas-mohawk2" title="Ideas, Planning, & Feedback">🤔</a></td>
79+
<td align="center"><a href="https://github.com/leadelngalame1611"><img src="https://avatars.githubusercontent.com/u/39901966?v=4?s=100" width="100px;" alt="leadelngalame1611"/><br /><sub><b>leadelngalame1611</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Aleadelngalame1611" title="Bug reports">🐛</a> <a href="#ideas-leadelngalame1611" title="Ideas, Planning, & Feedback">🤔</a></td>
80+
<td align="center"><a href="https://github.com/stunney"><img src="https://avatars.githubusercontent.com/u/609012?v=4?s=100" width="100px;" alt="S. Tunney"/><br /><sub><b>S. Tunney</b></sub></a><br /><a href="#ideas-stunney" title="Ideas, Planning, & Feedback">🤔</a></td>
81+
<td align="center"><a href="https://paul.kishimoto.name"><img src="https://avatars.githubusercontent.com/u/1634164?v=4?s=100" width="100px;" alt="Paul Natsuo Kishimoto"/><br /><sub><b>Paul Natsuo Kishimoto</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Akhaeru" title="Bug reports">🐛</a> <a href="#research-khaeru" title="Research">🔬</a></td>
82+
</tr>
83+
<tr>
84+
<td align="center"><a href="https://github.com/jbms"><img src="https://avatars.githubusercontent.com/u/4211946?v=4?s=100" width="100px;" alt="Jeremy Maitin-Shepard"/><br /><sub><b>Jeremy Maitin-Shepard</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Ajbms" title="Bug reports">🐛</a> <a href="#ideas-jbms" title="Ideas, Planning, & Feedback">🤔</a></td>
85+
<td align="center"><a href="https://github.com/mvrueden"><img src="https://avatars.githubusercontent.com/u/4202259?v=4?s=100" width="100px;" alt="mvrueden"/><br /><sub><b>mvrueden</b></sub></a><br /><a href="https://github.com/ts-graphviz/setup-graphviz/issues?q=author%3Amvrueden" title="Bug reports">🐛</a> <a href="https://github.com/ts-graphviz/setup-graphviz/commits?author=mvrueden" title="Code">💻</a></td>
86+
</tr>
87+
</tbody>
7788
</table>
7889
7990
<!-- markdownlint-restore -->

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ branding:
55
icon: arrow-down-circle
66
color: gray-dark
77
inputs:
8+
ubuntu-skip-apt-update:
9+
description: |-
10+
Skip to run apt update command on Ubuntu.
11+
required: false
12+
default: 'false'
813
ubuntu-graphviz-version:
914
description: |-
1015
graphviz version on Ubuntu.
@@ -13,6 +18,11 @@ inputs:
1318
description: |-
1419
libgraphviz-dev version on Ubuntu.
1520
required: false
21+
macos-skip-brew-update:
22+
description: |-
23+
Skip to run brew update command on macOS.
24+
required: false
25+
default: 'false'
1626
windows-graphviz-version:
1727
description: |-
1828
graphviz version on Windows.

lib/GraphvizInstaller.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,26 @@ class GraphvizInstaller {
2323
}
2424
}
2525
async brewInstall() {
26-
await (0, exec_1.exec)('brew', ['update']);
26+
const skipBrewUpdate = (0, core_1.getBooleanInput)('macos-skip-brew-update');
27+
if (skipBrewUpdate === false) {
28+
await (0, exec_1.exec)('brew', ['update']);
29+
}
2730
await (0, exec_1.exec)('brew', [
2831
'install',
2932
'graphviz',
3033
]);
3134
}
3235
async getAptInstall() {
36+
const skipAptUpdate = (0, core_1.getBooleanInput)('ubuntu-skip-apt-update');
3337
const graphvizVersion = (0, core_1.getInput)('ubuntu-graphviz-version');
3438
const libgraphvizdevVersion = (0, core_1.getInput)('ubuntu-libgraphvizdev-version');
35-
await (0, exec_1.exec)('sudo', ['apt-get', 'update']);
39+
if (skipAptUpdate === false) {
40+
await (0, exec_1.exec)('sudo', ['apt-get', 'update']);
41+
}
3642
await (0, exec_1.exec)('sudo', [
3743
'apt-get',
3844
'install',
45+
'-y',
3946
graphvizVersion ? `graphviz=${graphvizVersion}` : 'graphviz',
4047
// https://github.com/pygraphviz/pygraphviz/issues/163#issuecomment-570770201
4148
libgraphvizdevVersion ? `libgraphviz-dev=${libgraphvizdevVersion}` : 'libgraphviz-dev',

0 commit comments

Comments
 (0)