Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self-hosted-runner:
labels:
- rise-gcc-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
output-dir:
required: true
description: 'Absolute path to the output directory'
repository:
required: true
description: 'Repository to search when the artifact is not in the current workflow'

runs:
using: "composite"
Expand All @@ -30,5 +33,5 @@ runs:
run: |
pip install pygithub requests
cd riscv-gnu-toolchain
python ./scripts/download_artifact.py -name ${{ inputs.build-artifact-name }} -repo patrick-rivos/gcc-postcommit-ci -token ${{ inputs.github-token }} -outdir ${{ inputs.output-dir }}
python ./scripts/download_artifact.py -name ${{ inputs.build-artifact-name }} -repo ${{ inputs.repository }} -token ${{ inputs.github-token }} -outdir ${{ inputs.output-dir }}
continue-on-error: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
required: true
github-token:
required: true
repository:
required: true
description: 'Repository to search when the artifact is not in the current workflow'

runs:
using: "composite"
Expand All @@ -30,7 +33,7 @@ runs:
run: |
pip install pygithub requests
cd riscv-gnu-toolchain
python ./scripts/download_artifact.py -name ${{ inputs.report-artifact-name }} -repo patrick-rivos/gcc-postcommit-ci -token ${{ inputs.github-token }} -outdir current_logs
python ./scripts/download_artifact.py -name ${{ inputs.report-artifact-name }} -repo ${{ inputs.repository }} -token ${{ inputs.github-token }} -outdir current_logs
continue-on-error: true

- name: Report failed download
Expand All @@ -51,9 +54,9 @@ runs:


- name: Download binary from another workflow
if: ${{ !cancelled() && steps.report-download.outputs.report_download == 'falure' && steps.same-workflow-binary.outcome == 'failure' }}
if: ${{ !cancelled() && steps.report-download.outputs.report_download == 'failure' && steps.same-workflow-binary.outcome == 'failure' }}
shell: bash
run: |
cd riscv-gnu-toolchain
python ./scripts/download_artifact.py -name ${{ inputs.binary-artifact-name }} -repo patrick-rivos/gcc-postcommit-ci -token ${{ inputs.github-token }} -outdir temp
python ./scripts/download_artifact.py -name ${{ inputs.binary-artifact-name }} -repo ${{ inputs.repository }} -token ${{ inputs.github-token }} -outdir temp
continue-on-error: true
4 changes: 2 additions & 2 deletions .github/actions/common/init-and-pull-gcc/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
cd gcc
git config --add remote.origin.fetch "+refs/vendors/riscv/*:refs/remotes/upstream/vendors/riscv/*"
git fetch
git checkout upstream/vendors/riscv/heads/gcc-14-with-riscv-opts
git checkout upstream/vendors/riscv/heads/gcc-15-with-riscv-opts
continue-on-error: true

- name: Sleep and retry
Expand All @@ -83,7 +83,7 @@ runs:
cd gcc
git config --add remote.origin.fetch "+refs/vendors/riscv/*:refs/remotes/upstream/vendors/riscv/*"
git fetch
git checkout upstream/vendors/riscv/heads/gcc-14-with-riscv-opts
git checkout upstream/vendors/riscv/heads/gcc-15-with-riscv-opts

- name: Checkout release branch
shell: bash
Expand Down
14 changes: 14 additions & 0 deletions .github/actions/download-all-build-log-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ inputs:
output-dir:
required: true
description: 'Absolute Path to the artifact directory'
repository:
required: true

runs:
using: "composite"
Expand All @@ -27,27 +29,31 @@ runs:
build-artifact-name: ${{ inputs.prefix }}linux-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download linux rv64gc non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}linux-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download linux rv32 bitmanip non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}linux-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download linux rv64 bitmanip non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}linux-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

# Newlib

Expand All @@ -57,27 +63,31 @@ runs:
build-artifact-name: ${{ inputs.prefix }}newlib-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib rv64gc non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib rv32 bitmanip non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib rv64 bitmanip non-multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

# Multilib
- name: Download linux multilib
Expand All @@ -86,27 +96,31 @@ runs:
build-artifact-name: ${{ inputs.prefix }}linux-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib uc multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv64imc-lp64d-${{ inputs.gcchash }}-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Download newlib uc bitmanip multilib
uses: ./.github/actions/common/download-build-log-artifact
with:
build-artifact-name: ${{ inputs.prefix }}newlib-rv64imc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-multilib-build-log
github-token: ${{ inputs.github-token }}
output-dir: ${{ inputs.output-dir }}
repository: ${{ inputs.repository }}

- name: Print downloaded artifacts
shell: bash
Expand Down
14 changes: 14 additions & 0 deletions .github/actions/download-all-comparison-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ inputs:
required: true
prefix:
required: false
repository:
required: true

runs:
using: "composite"
Expand All @@ -19,27 +21,31 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv64gc non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv32 bitmanip non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv64 bitmanip non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Newlib

Expand All @@ -49,27 +55,31 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc-ilp32d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib rv64gc non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc-lp64d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib rv32 bitmanip non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc_zba_zbb_zbc_zbs-ilp32d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib rv64 bitmanip non-multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-non-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Multilib
- name: Download linux multilib
Expand All @@ -78,24 +88,28 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gcv-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib uc multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64imc-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64imc-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib uc bitmanip multilib
uses: ./.github/actions/common/download-comparison-artifacts
with:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64imc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64imc_zba_zbb_zbc_zbs-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}
16 changes: 16 additions & 0 deletions .github/actions/download-all-weekly-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ inputs:
required: true
prefix:
required: false
repository:
required: true

runs:
using: "composite"
Expand All @@ -20,6 +22,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zve64d-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zve64d-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv64 zve64d
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -28,6 +31,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zve64d-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zve64d-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Download rv64 zvl builds.

Expand All @@ -38,6 +42,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl1024b-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl1024b-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv64-512b
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -46,6 +51,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl512b-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl512b-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv64-256b
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -54,6 +60,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl256b-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl256b-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# only have 128b for lmul2 runs
- name: Download linux rv64-128b
Expand All @@ -63,6 +70,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl128b-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zvl128b-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Download rv32 zvl builds.

Expand All @@ -73,6 +81,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl1024b-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl1024b-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv32-512b
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -81,6 +90,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl512b-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl512b-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv32-256b
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -89,6 +99,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl256b-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gcv_zvl256b-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Download rv32/64 binutils builds.

Expand All @@ -99,6 +110,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gc-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download linux rv32-binutils
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -107,6 +119,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv32gc-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib rv64-binutils
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -115,6 +128,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv64gc-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

- name: Download newlib rv32-binutils
uses: ./.github/actions/common/download-comparison-artifacts
Expand All @@ -123,6 +137,7 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc-ilp32d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-newlib-rv32gc-ilp32d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}

# Download with checking builds

Expand All @@ -133,3 +148,4 @@ runs:
report-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zicond-lp64d-${{ inputs.gcchash }}-multilib-report.log
binary-artifact-name: ${{ inputs.prefix }}gcc-linux-rv64gcv_zicond-lp64d-${{ inputs.gcchash }}-multilib
github-token: ${{ inputs.token }}
repository: ${{ inputs.repository }}
Loading
Loading