Skip to content

Commit 5f7bfa9

Browse files
authored
[shortfin] Enable building Rust deps on Linux (#619)
Sets up Rust to build shortfin with `SHORTFIN_ENABLE_TOKENIZERS` set to `ON` on Linux. At the moment, building with Rust is limited to Linux as there are build failures on Windows (see issue #620).
1 parent c9cb226 commit 5f7bfa9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci-libshortfin.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Ubuntu (Clang)(full)
5151
runs-on: ubuntu-24.04
5252
cmake-options:
53-
-DCMAKE_C_COMPILER=clang-18 -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_LINKER_TYPE=LLD
53+
-DCMAKE_C_COMPILER=clang-18 -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_LINKER_TYPE=LLD -DSHORTFIN_ENABLE_TOKENIZERS=ON
5454
additional-packages: clang lld
5555
- name: Ubuntu (Clang)(host-only)
5656
runs-on: ubuntu-24.04
@@ -88,6 +88,14 @@ jobs:
8888
if: "runner.os == 'Windows'"
8989
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
9090

91+
- name: Setup Rust
92+
# For now, `SHORTFIN_ENABLE_TOKENIZERS` is only enabled for 'Ubuntu (Clang)(full)'.
93+
# TODO(#620): Enable on Windows.
94+
if: ${{ matrix.name == 'Ubuntu (Clang)(full)'}}
95+
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa # master branch (Nov 18, 2024)
96+
with:
97+
toolchain: stable
98+
9199
- name: Checkout IREE repo
92100
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
93101
with:

0 commit comments

Comments
 (0)