Skip to content

Commit c861a50

Browse files
committed
CI(macOS): verify rust toolchain after venv activation for editable install
1 parent 27d8136 commit c861a50

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test-mac.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,36 @@ jobs:
4242
stestr | "${{ runner.os }}"
4343
stestr
4444
path: .stestr
45+
- name: Set up Rust (minimal, for building qiskit)
46+
uses: dtolnay/rust-toolchain@stable
47+
with:
48+
toolchain: stable
49+
profile: minimal
50+
components: ""
51+
52+
- name: Verify Rust toolchain
53+
shell: bash
54+
run: |
55+
set -e
56+
echo "PATH=$PATH"
57+
which rustc
58+
which cargo
59+
rustc -V
60+
cargo -V
4561
- name: "Install dependencies"
62+
shell: bash
63+
env:
64+
RUSTUP_TOOLCHAIN: stable
4665
run: |
4766
set -e
4867
python -m venv test-job
4968
source test-job/bin/activate
69+
70+
which rustc
71+
which cargo
72+
rustc -V
73+
cargo -V
74+
5075
python -m pip install -U pip
5176
python -m pip install -U \
5277
-c constraints.txt \

0 commit comments

Comments
 (0)