Skip to content

ci: put build html in timings/raw_html folder rather than timings #2

ci: put build html in timings/raw_html folder rather than timings

ci: put build html in timings/raw_html folder rather than timings #2

name: Save cargo build timing information
on: [push, pull_request]
jobs:
linux-ubuntu:
name: Add build timing information to another repository
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
# regarding the caching of build files, for now i've decided we are building fresh
steps:
- name: Checkout main repo
uses: actions/checkout@v4
with:
path: debate-map
- name: Build Timing
working-directory: debate-map
run: cargo build --package app-server --timings
- name: Checkout compile timings repo
uses: actions/checkout@v4
with:
repository: debate-map/compile-timings
path : compile-timings
token : ${{ secrets.PAT }}
- name: Create required directories & copy raw timing file (with the timestamp in it's name) to target repository's timings/raw_html directory
run: |
mkdir -p compile-timings/timings/raw_html
mkdir -p compile-timings/timings/build_metadatas/
mkdir -p compile-timings/timings/build_units/
mv debate-map/target/cargo-timings/cargo-timing-* compile-timings/timings/raw_html
#- name: Extract compile timing information from any new raw build timing html file that's not in tracker.json and add them to build_metadatas & build_units
#working-directory: debate-map/compile-timings/compile-timings-extractor
#run: |
##mv debate-map/target/cargo-timings/cargo-timing-* compile-timings/timings/
#cargo run -- --input-file ../timings/cargo-timing-20240825T213151Z.html --tracker-file ./tracker.json --metadata-dir ./hey --units-data-dir ./hehe
- name: Commit and push changes
working-directory: compile-timings
run: |
git config user.name "compile-timings[bot]"
git config user.email [email protected]
git add timings
git commit -m "ci: add build timing information for app-server"
git push