generated from actions/hello-world-docker-action
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from c-bata/separate-minimum-actions
Separate minimum actions
- Loading branch information
Showing
8 changed files
with
89 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: 'Kurobako' | ||
description: 'GitHub Action to report kurobako benchmark results on the PR.' | ||
name: 'Kurobako Report' | ||
description: 'GitHub Action to comment kurobako benchmark results on the pull request.' | ||
inputs: | ||
report-json-path: | ||
description: 'File path to a json generated by kurobako run command.' | ||
report-md-path: | ||
description: 'File path to a json generated by kurobako report command.' | ||
required: true | ||
default: './kurobako.json' | ||
default: 'kurobako.md' | ||
public-image-url: | ||
description: 'URL to kurobako plot curve image which you upload later.' | ||
required: false | ||
default: '' | ||
description: 'A public image url to kurobako plot image.' | ||
required: true | ||
default: 'https://storage.googleapis.com/kurobako-reports/dummy.png' | ||
outputs: | ||
image-path: | ||
description: 'A file path to the generated image of kurobako. You need to upload this on GCS.' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.report-json-path }} | ||
- ${{ inputs.report-md-path }} | ||
- ${{ inputs.public-image-url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine:3.11 | ||
|
||
RUN apk add --update gnuplot \ | ||
fontconfig \ | ||
ttf-ubuntu-font-family \ | ||
msttcorefonts-installer \ | ||
curl && \ | ||
update-ms-fonts && \ | ||
fc-cache -f && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
RUN curl -L https://github.com/sile/kurobako/releases/download/0.1.4/kurobako-0.1.4.linux-amd64 -o kurobako && \ | ||
chmod +x ./kurobako && \ | ||
./kurobako -h | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# kurobako-plot | ||
|
||
GitHub Action to plot a benchmark result of [kurobako](https://github.com/sile/kurobako). | ||
|
||
## Inputs | ||
|
||
### `report-json-path` | ||
|
||
**Required** File path to a json generated by kurobako run command. Default `"./kurobako.json"`. | ||
|
||
## Outputs | ||
|
||
### `image-path` | ||
|
||
A file path to the generated image of kurobako. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
uses: c-bata/github-actions-kurobako/plot@master | ||
with: | ||
report-json-path: '/home/runner/kurobako-report.json' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Kurobako Plot' | ||
description: 'GitHub Action to run kurobako plot curve.' | ||
inputs: | ||
report-json-path: | ||
description: 'File path to a json generated by kurobako run command.' | ||
required: true | ||
default: './kurobako.json' | ||
outputs: | ||
image-path: | ||
description: 'A file path to the generated image of kurobako.' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.report-json-path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh -l | ||
|
||
set -e | ||
|
||
cat $1 | ./kurobako plot curve -o ./output/ | ||
|
||
imagepath=$(ls ./output/*.png | head -1) | ||
|
||
echo ::set-output name=image-path::$imagepath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters