Skip to content

Commit d287513

Browse files
committed
Merge branch 'feature/release-v0.4.0' into development
2 parents 0c220e5 + f6e831e commit d287513

3 files changed

Lines changed: 37 additions & 2 deletions

File tree

.github/workflows/release-sdk-gem.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
runner: macos-15-intel,
4242
platform: x86_64-darwin,
4343
}
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).
4548

4649
steps:
4750
- name: Checkout
@@ -65,7 +68,7 @@ jobs:
6568
run: |
6669
for crate_name in smbcloud-auth-sdk smbcloud-model smbcloud-network; do
6770
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
6972
echo "${crate_name} ${RELEASE_VERSION} is available on crates.io"
7073
break
7174
fi
@@ -80,6 +83,10 @@ jobs:
8083
done
8184
done
8285
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+
8390
- name: Read Rust toolchain
8491
shell: bash
8592
run: |

.github/workflows/release-sdk-pypi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119

120120
# manylinux containers are CentOS-based and use yum; perl-core is required
121121
# 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+
122126
- name: Build wheel
123127
uses: PyO3/maturin-action@v1
124128
with:
@@ -172,6 +176,9 @@ jobs:
172176
with:
173177
toolchain: ${{ env.RUST_TOOLCHAIN }}
174178

179+
- name: Clean dist directory
180+
run: rm -rf sdk/python/dist
181+
175182
- name: Build sdist
176183
uses: PyO3/maturin-action@v1
177184
with:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

0 commit comments

Comments
 (0)