Ignore jobs that haven't occurred in the last two days #116
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Performance Release Report | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
push: | |
branches: main | |
paths: | |
- ".github/workflows/performance-release-report.yml" | |
- "performance-release-report/performance-release-report.qmd" | |
workflow_dispatch: | |
inputs: | |
baseline_git_commit: | |
description: 'Baseline Git Commit' | |
required: false | |
contender_git_commit: | |
description: 'Contender Git Commit' | |
required: false | |
rc_label: | |
description: 'RC Label' | |
required: false | |
publish: | |
type: boolean | |
description: 'Publish to S3' | |
required: false | |
default: false | |
permissions: | |
contents: read | |
env: | |
## payload vars | |
BASELINE_GIT_COMMIT: ${{ github.event.inputs.baseline_git_commit || '7dd1d34074af176d9e861a360e135ae57b21cf96' }} | |
CONTENDER_GIT_COMMIT: ${{ github.event.inputs.contender_git_commit || 'a42df4baf09f9b4d168c5ad5139003ed7bdf2246' }} | |
RC_LABEL: ${{ github.event.inputs.rc_label || 'manual' }} | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: '1.4.557' | |
- name: Install libcurl on ubuntu | |
shell: bash | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.4.0' | |
use-public-rspm: true | |
# Needed due to https://github.com/r-lib/actions/issues/618 | |
- name: Link renv.lock | |
run: ln -sf 'performance-release-report/renv.lock' | |
- name: Setup renv | |
uses: r-lib/actions/setup-renv@v2 | |
env: | |
# This is set by setup-r | |
RENV_CONFIG_REPOS_OVERRIDE: "" | |
with: | |
cache-version: 1 | |
- name: Build Report | |
uses: quarto-dev/quarto-actions/render@v2 | |
env: | |
BASELINE_GIT_COMMIT: ${{ env.BASELINE_GIT_COMMIT }} | |
CONTENDER_GIT_COMMIT: ${{ env.CONTENDER_GIT_COMMIT }} | |
with: | |
to: html | |
path: 'performance-release-report/performance-release-report.qmd' | |
- name: Upload Rendered Perf Report | |
if: github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: perf-report | |
path: 'performance-release-report/performance-release-report.html' | |
- name: Upload result | |
if: ${{ github.event.inputs.publish == 'true' }} | |
working-directory: performance-release-report | |
shell: bash | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.CROSSBOW_DOCS_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.CROSSBOW_DOCS_AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.CROSSBOW_DOCS_S3_BUCKET_REGION }} | |
BUCKET: ${{ secrets.CROSSBOW_DOCS_S3_BUCKET }} | |
run: | | |
aws s3 cp performance-release-report.html $BUCKET/release_reports/arrow-release-report-${{ env.RC_LABEL }}.html |