Skip to content

Update links to https://riseproject-dev.github.io/gcc-postcommit-ci #2

Update links to https://riseproject-dev.github.io/gcc-postcommit-ci

Update links to https://riseproject-dev.github.io/gcc-postcommit-ci #2

Workflow file for this run

name: Staging
# Staging workflow
# Triggered on pull requests into staging branch
# Goal is to prevent making breaking changes to Run-Frequent workflows
on:
pull_request:
branches:
- main
workflow_dispatch:
branches:
- main
inputs:
gcchash:
description: 'GCC Hash'
required: false
issue_num:
description: 'Bisection Issue Number (Optional)'
required: false
jobs:
manually-triggered-workflow-dispatch:
uses: ./.github/workflows/run-frequent.yaml
if: ${{ inputs.gcchash != '' }}
permissions:
issues: write
with:
gcchash: ${{ inputs.gcchash }}
issue_num: ${{ inputs.issue_num }}
get-hash:
runs-on: ubuntu-24.04
environment: production
if: ${{ inputs.gcchash == '' }}
steps:
- uses: actions/checkout@v4
- name: Setup env
uses: ./.github/actions/common/setup-env
with:
free_up_space: false
- name: Bump pyopenssl and crypto
run: |
sudo apt remove python3-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
pip install -U pyopenssl cryptography requests
- name: Get staging hash to run
id: baseline-hash
run: |
cd riscv-gnu-toolchain
python ./scripts/get_staging_hash.py -token ${{ secrets.GITHUB_TOKEN }} -repo patrick-rivos/gcc-postcommit-ci
BASELINE_HASH=$(cat issue_hash.txt)
echo "baseline_hash=$BASELINE_HASH" >> $GITHUB_OUTPUT
- name: Get issue number
id: issue-num
run: |
cd riscv-gnu-toolchain
ISSUE_NUM=$(cat issue_number.txt)
echo "issue_num=$ISSUE_NUM" >> $GITHUB_OUTPUT
outputs:
baseline_hash: ${{ steps.baseline-hash.outputs.baseline_hash }}
issue_num: ${{ steps.issue-num.outputs.issue_num }}
run-workflow:
needs: [get-hash]
uses: ./.github/workflows/run-frequent.yaml
if: ${{ inputs.gcchash == '' }}
permissions:
issues: write
secrets: inherit
with:
gcchash: ${{ needs.get-hash.outputs.baseline_hash }}
issue_num: ${{ needs.get-hash.outputs.issue_num }}