You've already forked findutils-tracking
mirror of
https://github.com/uutils/findutils-tracking.git
synced 2026-06-10 16:12:54 -07:00
116 lines
2.8 KiB
YAML
116 lines
2.8 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "0 2 * * *"
|
|
|
|
jobs:
|
|
gnu:
|
|
name: Process the GNU test results
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install deps
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install jq python3-pandas python3-matplotlib
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Download the result
|
|
uses: dawidd6/action-download-artifact@v2
|
|
with:
|
|
workflow: compat.yml
|
|
name: gnu-result
|
|
repo: uutils/findutils
|
|
path: dl
|
|
|
|
- name: Merge the json files
|
|
shell: bash
|
|
run: |
|
|
echo "== dl/gnu-result.json =="
|
|
cat dl/gnu-result.json
|
|
echo "== gnu-result.json =="
|
|
cat gnu-result.json
|
|
jq -s '.[0] * .[1]' gnu-result.json dl/gnu-result.json > merged.json
|
|
echo "== merged.json ="
|
|
cat merged.json
|
|
mv merged.json gnu-result.json
|
|
rm -rf dl
|
|
|
|
- name: Add & Commit
|
|
uses: EndBug/add-and-commit@v7.2.1
|
|
with:
|
|
default_author: github_actions
|
|
message: "Update of the GNU data"
|
|
pull_strategy: '--autostash'
|
|
|
|
- name: Generate the graph
|
|
shell: bash
|
|
run: |
|
|
python graph.py gnu-result.json
|
|
|
|
- name: Add & Commit the graph
|
|
uses: EndBug/add-and-commit@v7.2.1
|
|
with:
|
|
default_author: github_actions
|
|
message: "Refresh the graph"
|
|
add: gnu-results.png
|
|
|
|
bfs:
|
|
name: Process the BFS test results
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install deps
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install jq python3-pandas python3-matplotlib
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Download the result
|
|
uses: dawidd6/action-download-artifact@v2
|
|
with:
|
|
workflow: compat.yml
|
|
name: bfs-result
|
|
repo: uutils/findutils
|
|
path: dl
|
|
|
|
- name: Merge the json files
|
|
shell: bash
|
|
run: |
|
|
echo "== dl/bfs-result.json =="
|
|
cat dl/bfs-result.json
|
|
echo "== bfs-result.json =="
|
|
cat bfs-result.json
|
|
jq -s '.[0] * .[1]' bfs-result.json dl/bfs-result.json > merged.json
|
|
echo "== merged.json ="
|
|
cat merged.json
|
|
mv merged.json bfs-result.json
|
|
rm -rf dl
|
|
|
|
- name: Add & Commit
|
|
uses: EndBug/add-and-commit@v7.2.1
|
|
with:
|
|
default_author: github_actions
|
|
message: "Update of the BFS data"
|
|
pull_strategy: '--autostash'
|
|
|
|
- name: Generate the graph
|
|
shell: bash
|
|
run: |
|
|
python graph.py bfs-result.json
|
|
|
|
- name: Add & Commit the graph
|
|
uses: EndBug/add-and-commit@v7.2.1
|
|
with:
|
|
default_author: github_actions
|
|
message: "Refresh the graph"
|
|
add: bfs-results.png
|