From b7decd52bb0367576cdc7f798376ba13cfb2780a Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 22:38:24 -0800 Subject: [PATCH 01/17] testing --- .github/workflows/CI.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 75aa6e91..9d4fe7b4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -61,7 +61,7 @@ jobs: if: steps.cache-venv.outputs.cache-hit != 'true' run: | sudo apt-get update - sudo apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source + sudo apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools - name: Install Rust toolchain if: steps.cache-venv.outputs.cache-hit != 'true' @@ -146,11 +146,12 @@ jobs: ${{ matrix.task.run }} build-linux: - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: ubuntu-latest strategy: matrix: - target: [x86_64, x86, aarch64, armv7] + # target: [x86_64, x86, aarch64, armv7] + target: [aarch64, armv7] name: "Build Linux (${{ matrix.target }})" steps: - uses: actions/checkout@v3 From da80648dafd45c141486483f94627988817d6431 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 22:40:27 -0800 Subject: [PATCH 02/17] testing --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9d4fe7b4..db8e0b1a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -147,6 +147,7 @@ jobs: build-linux: # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + runs-on: ubuntu-latest strategy: matrix: From a806333e27181837601e91cfeb16c054052d5e52 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 22:43:31 -0800 Subject: [PATCH 03/17] manylinux --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index db8e0b1a..67c7669f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -169,7 +169,7 @@ jobs: with: target: ${{ matrix.target }} args: --release --out dist --find-interpreter - manylinux: auto + manylinux: manylinux_2_28 - name: Upload wheels uses: actions/upload-artifact@v3 with: From 299b14ae74a3cab6a93969e6e362f26ef67e6b8e Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 22:58:36 -0800 Subject: [PATCH 04/17] manual ring override --- Cargo.lock | 138 ++++++++++++++++++++++++++++------------------------- Cargo.toml | 2 +- 2 files changed, 74 insertions(+), 66 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed15017d..9ede58c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.7" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd2405b3ac1faab2990b74d728624cd9fd115651fcecc7c2d8daf01376275ba" +checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5" dependencies = [ "anstyle", "anstyle-parse", @@ -64,9 +64,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" +checksum = "2faccea4cc4ab4a667ce676a30e8ec13922a692c99bb8f5b11f1502c72e04220" [[package]] name = "anstyle-parse" @@ -535,9 +535,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.1" +version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "block-buffer" @@ -608,9 +608,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.16" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e54881c004cec7895b0068a0a954cd5d62da01aef83fa35b1e594497bf5445" +checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" dependencies = [ "clap_builder", "clap_derive", @@ -618,9 +618,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.16" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59cb82d7f531603d2fd1f507441cdd35184fa81beff7bd489570de7f773460bb" +checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" dependencies = [ "anstream", "anstyle", @@ -879,7 +879,7 @@ dependencies = [ "aws-config", "aws-sdk-s3", "byteorder", - "clap 4.4.16", + "clap 4.4.18", "console", "env_logger", "flate2", @@ -921,9 +921,9 @@ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" [[package]] name = "env_logger" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" +checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" dependencies = [ "humantime", "is-terminal", @@ -1136,9 +1136,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "5d3d0e0f38255e7fa3cf31335b3a56f05febd18025f4db5ef7a0cfb4f8da651f" [[package]] name = "hex" @@ -1269,9 +1269,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520" dependencies = [ "equivalent", "hashbrown", @@ -1311,7 +1311,7 @@ version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455" dependencies = [ - "hermit-abi 0.3.3", + "hermit-abi 0.3.4", "rustix", "windows-sys 0.52.0", ] @@ -1361,9 +1361,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.152" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libredox" @@ -1371,16 +1371,16 @@ version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "libc", "redox_syscall", ] [[package]] name = "libz-ng-sys" -version = "1.1.14" +version = "1.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81157dde2fd4ad2b45ea3a4bb47b8193b52a6346b678840d91d80d3c2cd166c5" +checksum = "c6409efc61b12687963e602df8ecf70e8ddacf95bc6576bcf16e3ac6328083c5" dependencies = [ "cmake", "libc", @@ -1388,9 +1388,9 @@ dependencies = [ [[package]] name = "linux-raw-sys" -version = "0.4.12" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" +checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "lock_api" @@ -1524,6 +1524,12 @@ dependencies = [ "minimal-lexical", ] +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + [[package]] name = "num-integer" version = "0.1.45" @@ -1549,7 +1555,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.3", + "hermit-abi 0.3.4", "libc", ] @@ -1598,11 +1604,11 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.62" +version = "0.10.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671" +checksum = "15c9d69dd87a29568d4d017cfe8ec518706046a05184e5aea92d0af890b803c8" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "cfg-if", "foreign-types", "libc", @@ -1630,9 +1636,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.98" +version = "0.9.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7" +checksum = "22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae" dependencies = [ "cc", "libc", @@ -1740,18 +1746,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "0302c4a0442c456bd56f841aee5c3bfd17967563f6fadc9ceb9f9c23cf3807e0" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" dependencies = [ "proc-macro2", "quote", @@ -1772,9 +1778,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a" +checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" [[package]] name = "portable-atomic" @@ -1820,9 +1826,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -1928,9 +1934,9 @@ dependencies = [ [[package]] name = "rayon" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" +checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051" dependencies = [ "either", "rayon-core", @@ -1949,9 +1955,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.12.0" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" dependencies = [ "crossbeam-deque", "crossbeam-utils", @@ -1979,9 +1985,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.2" +version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", @@ -1991,9 +1997,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", @@ -2071,7 +2077,7 @@ version = "0.38.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "errno", "libc", "linux-raw-sys", @@ -2213,18 +2219,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.195" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" +checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.195" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" +checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ "proc-macro2", "quote", @@ -2233,9 +2239,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.111" +version = "1.0.113" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" +checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" dependencies = [ "itoa", "ryu", @@ -2296,9 +2302,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.12.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2593d31f82ead8df961d8bd23a64c2ccf2eb5dd34b0a34bfb4dd54011c72009e" +checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" [[package]] name = "socket2" @@ -2472,11 +2478,12 @@ dependencies = [ [[package]] name = "time" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f657ba42c3f86e7680e53c8cd3af8abbe56b5491790b46e22e19c0d57463583e" +checksum = "fe80ced77cbfb4cb91a94bf72b378b4b6791a0d9b7f09d0be747d1bdff4e68bd" dependencies = [ "deranged", + "num-conv", "powerfmt", "serde", "time-core", @@ -2491,10 +2498,11 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26197e33420244aeb70c3e8c78376ca46571bc4e701e4791c2cd9f57dcb3a43f" +checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" dependencies = [ + "num-conv", "time-core", ] @@ -2515,12 +2523,12 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokenizers" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062b8a9613d6017633b80fb55fbb33f1aff006c36225a3025630753398034b3c" +checksum = "6db445cceba5dfeb0f9702be7d6bfd91801ddcbe8fe8722defe7f2e96da75812" dependencies = [ "aho-corasick", - "clap 4.4.16", + "clap 4.4.18", "derive_builder", "esaxx-rs", "getrandom", @@ -2693,9 +2701,9 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "unicode-bidi" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" diff --git a/Cargo.toml b/Cargo.toml index b5d4c3d8..fd812818 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib"] ahash = { version = "0.8.1", features = ["runtime-rng"] } anyhow = "1.0" atomic-traits = "0.3" -aws-config = { version = "0.55.0"} +aws-config = "0.55.3" aws-sdk-s3 = "0.25.0" byteorder = "1" clap = { version = "4.1.11", features = ["derive"] } From 613c5dab03f164c041f282de1158995e43d376cc Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:01:51 -0800 Subject: [PATCH 05/17] openssl override --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index fd812818..60fa029f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,7 @@ tokenizers = {version = "0.15.0", features = ["http"]} tokio = {version = "1.27.0", features = ["full"]} tokio-util = "0.7.7" unicode-segmentation = "1.7" +openssl = { version = "0.10", features = ["vendored"] } # [target.'cfg(target_arch = "aarch64")'.dependencies] # flate2 = "1.0.28" From 4d2c86758df0846b6664f16130b12068c6099d11 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:09:00 -0800 Subject: [PATCH 06/17] one final test --- .github/workflows/CI.yml | 8 +++----- Cargo.lock | 11 +++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 67c7669f..13ff9273 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -147,12 +147,10 @@ jobs: build-linux: # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} - runs-on: ubuntu-latest strategy: matrix: - # target: [x86_64, x86, aarch64, armv7] - target: [aarch64, armv7] + target: [x86_64, x86, aarch64, armv7] name: "Build Linux (${{ matrix.target }})" steps: - uses: actions/checkout@v3 @@ -177,7 +175,7 @@ jobs: path: dist build-windows: - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: windows-latest name: "Build Windows (${{ matrix.target }})" strategy: @@ -201,7 +199,7 @@ jobs: path: dist build-macos: - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: macos-latest name: "Build macOS (${{ matrix.target }})" strategy: diff --git a/Cargo.lock b/Cargo.lock index 9ede58c6..e175e2c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -890,6 +890,7 @@ dependencies = [ "log", "num-traits", "num_cpus", + "openssl", "parse-size", "pyo3", "rand", @@ -1634,6 +1635,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.2.2+3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bbfad0063610ac26ee79f7484739e2b07555a75c42453b89263830b5c8103bc" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.99" @@ -1642,6 +1652,7 @@ checksum = "22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] From 1b5499eff34bdf069d368f8b2ac2048f131284c3 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:17:35 -0800 Subject: [PATCH 07/17] removing x86 test --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 13ff9273..95f8c994 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -150,7 +150,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - target: [x86_64, x86, aarch64, armv7] + target: [x86_64, aarch64, armv7] name: "Build Linux (${{ matrix.target }})" steps: - uses: actions/checkout@v3 From 267f034f537b4d4bbabbae2295d0c9b3f55095e4 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:23:31 -0800 Subject: [PATCH 08/17] ssl --- .github/workflows/CI.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 95f8c994..286966fb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -150,6 +150,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + # target: [x86_64, x86, aarch64, armv7] target: [x86_64, aarch64, armv7] name: "Build Linux (${{ matrix.target }})" steps: @@ -168,6 +169,9 @@ jobs: target: ${{ matrix.target }} args: --release --out dist --find-interpreter manylinux: manylinux_2_28 + before-script-linux: | + sudo apt-get update + sudo apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools libssl-dev - name: Upload wheels uses: actions/upload-artifact@v3 with: From 1240b66d1590f4ce956009cb1b8df0b718a09761 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:28:23 -0800 Subject: [PATCH 09/17] no sudo? --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 286966fb..7622807d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -170,8 +170,8 @@ jobs: args: --release --out dist --find-interpreter manylinux: manylinux_2_28 before-script-linux: | - sudo apt-get update - sudo apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools libssl-dev + apt-get update + apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools - name: Upload wheels uses: actions/upload-artifact@v3 with: From bef9db2b850d19da4e5aa18908e487893575a93f Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:35:01 -0800 Subject: [PATCH 10/17] wup --- .github/workflows/CI.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7622807d..e8c08123 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -169,9 +169,6 @@ jobs: target: ${{ matrix.target }} args: --release --out dist --find-interpreter manylinux: manylinux_2_28 - before-script-linux: | - apt-get update - apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools - name: Upload wheels uses: actions/upload-artifact@v3 with: From dfaa6d0655946df5aa014a51129cf4fbc57a424d Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:39:57 -0800 Subject: [PATCH 11/17] conditional deps --- Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 60fa029f..5038abb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,6 @@ tokenizers = {version = "0.15.0", features = ["http"]} tokio = {version = "1.27.0", features = ["full"]} tokio-util = "0.7.7" unicode-segmentation = "1.7" -openssl = { version = "0.10", features = ["vendored"] } -# [target.'cfg(target_arch = "aarch64")'.dependencies] -# flate2 = "1.0.28" +[target.'cfg(target_arch = "aarch64")'.dependencies] +openssl = { version = "0.10.63", features = ["vendored"] } From c42cc11aeaae00d16ac58542430aaa5df9b7a9b0 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:43:26 -0800 Subject: [PATCH 12/17] conditional arch --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5038abb6..54420f9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,3 +45,6 @@ unicode-segmentation = "1.7" [target.'cfg(target_arch = "aarch64")'.dependencies] openssl = { version = "0.10.63", features = ["vendored"] } + +[target.'cfg(target_arch = "arm")'.dependencies] +openssl = { version = "0.10.63", features = ["vendored"] } From 26f27238803778a0f2bdc4f86ad25d01fc822ce3 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:53:24 -0800 Subject: [PATCH 13/17] container --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e8c08123..ee867812 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -169,6 +169,7 @@ jobs: target: ${{ matrix.target }} args: --release --out dist --find-interpreter manylinux: manylinux_2_28 + container: "ghcr.io/rust-cross/manylinux_2_28-cross:{{ matrix.target }}" - name: Upload wheels uses: actions/upload-artifact@v3 with: From 48c086bc0a2569e7754cbff15203ca3fb3afaf59 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:55:24 -0800 Subject: [PATCH 14/17] syntax --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ee867812..1451bf55 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -169,7 +169,7 @@ jobs: target: ${{ matrix.target }} args: --release --out dist --find-interpreter manylinux: manylinux_2_28 - container: "ghcr.io/rust-cross/manylinux_2_28-cross:{{ matrix.target }}" + container: "ghcr.io/rust-cross/manylinux_2_28-cross:${{ matrix.target }}" - name: Upload wheels uses: actions/upload-artifact@v3 with: From cfa858b615c3899bcf77def1112ac61e040a4259 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Wed, 31 Jan 2024 23:58:21 -0800 Subject: [PATCH 15/17] preinstall --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1451bf55..9c2c31b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -170,6 +170,9 @@ jobs: args: --release --out dist --find-interpreter manylinux: manylinux_2_28 container: "ghcr.io/rust-cross/manylinux_2_28-cross:${{ matrix.target }}" + before-script-linux: | + sudo apt-get update + sudo apt-get install --yes --upgrade build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools - name: Upload wheels uses: actions/upload-artifact@v3 with: From 54362dda235f6376c0f7b27fc6ac0e45cd527e6d Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Thu, 1 Feb 2024 00:06:21 -0800 Subject: [PATCH 16/17] removed conditional --- Cargo.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 54420f9d..8ca31315 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,9 +42,10 @@ tokenizers = {version = "0.15.0", features = ["http"]} tokio = {version = "1.27.0", features = ["full"]} tokio-util = "0.7.7" unicode-segmentation = "1.7" - -[target.'cfg(target_arch = "aarch64")'.dependencies] openssl = { version = "0.10.63", features = ["vendored"] } -[target.'cfg(target_arch = "arm")'.dependencies] -openssl = { version = "0.10.63", features = ["vendored"] } +# [target.'cfg(target_arch = "aarch64")'.dependencies] +# openssl = { version = "0.10.63", features = ["vendored"] } + +# [target.'cfg(target_arch = "arm")'.dependencies] +# openssl = { version = "0.10.63", features = ["vendored"] } From 65f3cf92378219cd445b1bbe7a18c3e6ed784b06 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Thu, 1 Feb 2024 00:22:48 -0800 Subject: [PATCH 17/17] made build conditional again --- .github/workflows/CI.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9c2c31b5..3e2a6271 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -146,10 +146,11 @@ jobs: ${{ matrix.task.run }} build-linux: - # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: ubuntu-latest strategy: matrix: + # fails to build on x86, so removing for now; low use anyway. # target: [x86_64, x86, aarch64, armv7] target: [x86_64, aarch64, armv7] name: "Build Linux (${{ matrix.target }})" @@ -180,7 +181,7 @@ jobs: path: dist build-windows: - # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: windows-latest name: "Build Windows (${{ matrix.target }})" strategy: @@ -204,7 +205,7 @@ jobs: path: dist build-macos: - # if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} runs-on: macos-latest name: "Build macOS (${{ matrix.target }})" strategy: