From 81925c073c203ef714e1d8ac2a42af71b522fcc3 Mon Sep 17 00:00:00 2001 From: jordandsullivan Date: Mon, 9 Dec 2024 19:53:40 -0800 Subject: [PATCH] Testting simplification, use built-in actions for committing --- .github/workflows/ucc-benchmarks.yml | 35 +++++++++------------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ucc-benchmarks.yml b/.github/workflows/ucc-benchmarks.yml index c92c2fbe..27c729db 100644 --- a/.github/workflows/ucc-benchmarks.yml +++ b/.github/workflows/ucc-benchmarks.yml @@ -10,31 +10,18 @@ on: jobs: run-benchmarks: - runs-on: ucc-benchmarks - + runs-on: ubuntu-latest steps: - # Checkout the repository - - name: Checkout code - uses: actions/checkout@v4 - - # Build the Docker image - - name: Build Docker image - run: docker build -t ucc-benchmark . + - name: Checkout Code + uses: actions/checkout@v3 - # Run the benchmarks in the Docker container - - name: Run benchmarks + - name: Build and Run Docker Container run: | - docker run --rm \ - -v ${{ github.workspace }}:/workspace \ - ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh" + docker build -t ucc-benchmark . + docker run --rm -v $PWD/benchmarks/results:/ucc/benchmarks/results ucc-benchmark - # Push benchmark results to the repository - - name: Commit and push results - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - git add benchmarks - git commit -m "Update benchmark results" - git push origin main + - name: Commit and Push Results + uses: EndBug/add-and-commit@v9 + with: + message: "Update benchmark results" + add: "benchmarks/results"