Skip to content

refactor(CI): replace test repositories with debate-map repo #1

refactor(CI): replace test repositories with debate-map repo

refactor(CI): replace test repositories with debate-map repo #1

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: Copy timing file (with timestamp) to target repository
run: |
mkdir -p compile-timings/timings
mv debate-map/target/cargo-timings/cargo-timing-* compile-timings/timings/
- name: Commit and push changes
working-directory: compile-timings
run: |
git config user.name "compile-timings[bot]"
git config user.email debatemap@gmail.com
git add timings
git commit -m "ci: add build timing information for app-server"
git push