From 6fea8050bcd58ff34fe9789c1ca18ef836171ba5 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Wed, 18 Aug 2021 12:15:39 -0500 Subject: [PATCH] Temporarily disable test-capi-tiny on CI --- .github/workflows/build-test.yml | 2 -- ffi/capi/examples/fixeddecimal_tiny/README.md | 15 +++++++++++++++ tools/scripts/ffi.toml | 3 ++- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 ffi/capi/examples/fixeddecimal_tiny/README.md diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 0c1eb13a2d7..0e7be175fe8 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -145,8 +145,6 @@ jobs: packages: | sphinx sphinx-rtd-theme - - name: Install LLVM tooling - run: sudo apt-get install clang lld - name: Install Diplomat uses: actions-rs/cargo@v1.0.1 diff --git a/ffi/capi/examples/fixeddecimal_tiny/README.md b/ffi/capi/examples/fixeddecimal_tiny/README.md new file mode 100644 index 00000000000..1adc91d9f5e --- /dev/null +++ b/ffi/capi/examples/fixeddecimal_tiny/README.md @@ -0,0 +1,15 @@ +# Tiny FixedDecimal FFI Demo + +This example contains tooling to build a size-optimized binary using FixedDecimal and FixedDecimalFormat in C over FFI. + +Prerequisites: `clang` and `lld`, which must be compatible with the Rust toolchain. `apt-get install clang lld` *might* work, but if you run into errors, refer to the following thread for tips: + +https://github.com/rust-lang/rust/issues/60059 + +You also need to install the correct toolchains: + +```bash +$ rustup install nightly-2021-02-28 +$ rustup component add --toolchain nightly-2021-02-28 rust-src +$ rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2021-02-28 +``` diff --git a/tools/scripts/ffi.toml b/tools/scripts/ffi.toml index f7dbc35e15f..b2708b50e16 100644 --- a/tools/scripts/ffi.toml +++ b/tools/scripts/ffi.toml @@ -10,7 +10,8 @@ category = "ICU4X Development" dependencies = [ "verify-diplomat-gen", "test-capi", - "test-capi-tiny", + # TODO(#964): Enable this CI test. + # "test-capi-tiny", "test-cpp", "build-wearos-ffi", "test-nostd",