Skip to content

Commit

Permalink
expt: plantuml solution trial 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dragondive committed Jul 19, 2024
1 parent 59fb678 commit 15ec309
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/queen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
description: Run the Rust solution.
default: true
type: boolean
run_plantuml_solution:
description: Run the PlantUML solution.
default: true
type: boolean

jobs:
checkout-scripts:
Expand Down Expand Up @@ -177,6 +181,54 @@ jobs:
name: rust_times
path: rust_times.csv

run-plantuml-solution:
runs-on: ubuntu-latest
needs:
- checkout-scripts
- compute-latest-solution-tag
if: ${{ inputs.run_plantuml_solution }}
steps:
- name: checkout solutions
uses: actions/checkout@v4
with:
ref: develop/queen

- name: fetch scripts
uses: actions/download-artifact@v4
with:
name: scripts
path: scripts

- name: setup plantuml
run: |
sudo apt-get install -y graphviz
wget https://github.com/plantuml/plantuml/releases/download/v1.2024.6/plantuml-mit-1.2024.6.jar \
-O plantuml.jar
- name: run solution
run: |
chmod +x ./scripts/execution_time.bash
for (( n = 0; n <= ${{ inputs.maximum_n }}; n++)); do
if command_output=$(./scripts/execution_time.bash \
java -jar plantuml.jar -tsvg -Dinput_n=$n); then
execution_time=$(echo "$command_output" | tail -n 1)
printf "%s,%d,%d\n" \
"PlantUML (${{ needs.compute-latest-solution-tag.outputs.tag }})" \
"$n" "$execution_time" >> plantuml_times.csv
fi
done
- name: debug (remove later)
run: |
ls -la plantuml/
ls -la .
# - name: share result artifacts
# uses: actions/upload-artifact@v4
# with:
# name: plantuml_times
# path: plantuml_times.csv

update-artifacts:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 15ec309

Please sign in to comment.