Skip to content

Commit c7bf1c2

Browse files
authored
ci: Add missing tket-c-api installs (#1254)
When the TKET_C_API_PATH env var is set, `tket1-passes` looks for the shared library in the given path rather than trying to build it by itself. We use the to be able to cache a single artifact and share it around. Although the env var is set globally, we weren't calling the install action in a couple jobs. This should fix the errors seen in #1250
1 parent 49c5996 commit c7bf1c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ jobs:
126126
- uses: mozilla-actions/[email protected]
127127
- name: Install stable toolchain
128128
uses: dtolnay/rust-toolchain@stable
129+
- name: Install tket-c-api library
130+
uses: ./.github/actions/tket-c-api
131+
with:
132+
install-path: ${{ env.TKET_C_API_PATH }}
129133
- uses: cargo-bins/cargo-binstall@main
130134
- name: Install cargo-codspeed
131135
run: cargo binstall cargo-codspeed --force
@@ -155,6 +159,10 @@ jobs:
155159
toolchain: "stable"
156160
- name: Configure default rust toolchain
157161
run: rustup override set ${{steps.toolchain.outputs.name}}
162+
- name: Install tket-c-api library
163+
uses: ./.github/actions/tket-c-api
164+
with:
165+
install-path: ${{ env.TKET_C_API_PATH }}
158166
- uses: taiki-e/install-action@nextest
159167
- name: Build with no features
160168
run: cargo nextest r --verbose -p tket -p tket-py -p tket-qsystem --no-default-features --no-run

0 commit comments

Comments
 (0)