@smbcloud / cli / commits / f6e831e

v0.4.0

Seto Elkahfi committed May 10, 2026 at 13:53 UTC f6e831eea48ff30cc4b2993da30c7257108b00ee
3 files changed +37 -2
.github/workflows/release-sdk-gem.yml
+9 -2
@@ -41,7 +41,10 @@ jobs:
41 runner: macos-15-intel,
42 platform: x86_64-darwin,
43 }
44 - - { name: win-x64, runner: windows-2022, platform: x64-mingw-ucrt }
44 + # Windows is excluded: rb-sys bindgen fails because RubyInstaller is
45 + # MinGW-based and its rbconfig emits GCC flags that are incompatible
46 + # with the MSVC clang used by bindgen. The source gem provides a
47 + # fallback for Windows users (compiled at install time).
48
49 steps:
50 - name: Checkout
@@ -65,7 +68,7 @@ jobs:
68 run: |
69 for crate_name in smbcloud-auth-sdk smbcloud-model smbcloud-network; do
70 for attempt in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
68 - if curl -fsS "https://crates.io/api/v1/crates/${crate_name}/${RELEASE_VERSION}" >/dev/null 2>&1; then
71 + if curl -fsS -H "User-Agent: smbcloud-cli-release" "https://crates.io/api/v1/crates/${crate_name}/${RELEASE_VERSION}" >/dev/null 2>&1; then
72 echo "${crate_name} ${RELEASE_VERSION} is available on crates.io"
73 break
74 fi
@@ -80,6 +83,10 @@ jobs:
83 done
84 done
85
86 + - name: Install system dependencies (Linux)
87 + if: runner.os == 'Linux'
88 + run: sudo apt-get update -q && sudo apt-get install -y libclang-dev
89 +
90 - name: Read Rust toolchain
91 shell: bash
92 run: |
.github/workflows/release-sdk-pypi.yml
+7
@@ -119,6 +119,10 @@ jobs:
119
120 # manylinux containers are CentOS-based and use yum; perl-core is required
121 # by the openssl-sys vendored build to compile OpenSSL from source.
122 + - name: Clean dist directory
123 + shell: bash
124 + run: rm -rf sdk/python/dist
125 +
126 - name: Build wheel
127 uses: PyO3/maturin-action@v1
128 with:
@@ -172,6 +176,9 @@ jobs:
176 with:
177 toolchain: ${{ env.RUST_TOOLCHAIN }}
178
179 + - name: Clean dist directory
180 + run: rm -rf sdk/python/dist
181 +
182 - name: Build sdist
183 uses: PyO3/maturin-action@v1
184 with:
crates/smbcloud-auth-sdk-py/LICENSE new
+21
@@ -0,0 +1,21 @@
1 +MIT License
2 +
3 +Copyright (c) 2026 smbCloud
4 +
5 +Permission is hereby granted, free of charge, to any person obtaining a copy
6 +of this software and associated documentation files (the "Software"), to deal
7 +in the Software without restriction, including without limitation the rights
8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 +copies of the Software, and to permit persons to whom the Software is
10 +furnished to do so, subject to the following conditions:
11 +
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
14 +
15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 +SOFTWARE.