Skip to content

Commit 15276e2

Browse files
committed
🐛 workaround for Ubuntu ARM failures in downstream repositories
Signed-off-by: burgholzer <[email protected]>
1 parent 5d56344 commit 15276e2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/reusable-python-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
# set up uv for faster Python package management
5050
- name: Install the latest version of uv
5151
uses: astral-sh/setup-uv@v5
52+
# explicitly set CC and CXX for Ubuntu ARM runners to work around an issue
53+
# where CXX would wrongfully be set to an x86_64 compiler.
54+
- name: Set CC and CXX for ARM
55+
if: ${{ runner.os }} == 'Linux' && ${{ runner.arch }} == 'ARM64'
56+
run: |
57+
echo "CC=gcc" >> $GITHUB_ENV
58+
echo "CXX=g++" >> $GITHUB_ENV
5259
# run the nox minimums session (assumes a nox session named "minimums" exists) with coverage
5360
- name: 🐍 Test with minimal versions
5461
run: uvx nox -s minimums --verbose -- --cov --cov-report=xml:coverage-${{ inputs.runs-on }}.xml --cov-append

.github/workflows/reusable-qiskit-upstream.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ jobs:
5555
- name: Install uv
5656
uses: astral-sh/setup-uv@v5
5757

58+
# Explicitly set CC and CXX for Ubuntu ARM runners to work around an issue
59+
# where CXX would wrongfully be set to an x86_64 compiler.
60+
- name: Set CC and CXX for ARM
61+
if: ${{ runner.os }} == 'Linux' && ${{ runner.arch }} == 'ARM64'
62+
run: |
63+
echo "CC=gcc" >> $GITHUB_ENV
64+
echo "CXX=g++" >> $GITHUB_ENV
65+
5866
# Run the nox qiskit session
5967
- name: Test against latest Qiskit
6068
run: uvx nox -s qiskit --verbose

0 commit comments

Comments
 (0)