Skip to content

Commit 0cd0b99

Browse files
committed
Shell check. Also added windows pip install test
1 parent ae4247a commit 0cd0b99

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.github/workflows/python_ci.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
sudo apt-get update
3030
sudo apt-get install -y libclang-dev cmake libshaderc-dev libvulkan-dev glslc
31-
#- run: curl -sSf https://sshx.io/get | sh -s run
31+
- run: curl -sSf https://sshx.io/get | sh -s run
3232
- name: "Build linux python wheel"
3333
run: maturin build --verbose ${{ matrix.profile == 'release' && '--release' || '' }} --locked
3434
working-directory: ./nobodywho/python
@@ -69,6 +69,12 @@ jobs:
6969
cd C:/
7070
cd python
7171
maturin build --verbose ${{ matrix.profile == 'release' && '--release' || '' }} --locked --target ${{ matrix.target }}
72+
- name: "Upload wheel artifact"
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: nobodywhopython-0.1.0-cp38-abi3-win_amd64.whl
76+
path: C:\target\wheels\nobodywhopython-0.1.0-cp38-abi3-win_amd64.whl
77+
7278

7379
mac-os-build:
7480
runs-on: macos-14
@@ -80,6 +86,8 @@ jobs:
8086
- "aarch64-apple-darwin"
8187
profile:
8288
- "release"
89+
env:
90+
CARGO_BUILD_TARGET: ${{ matrix.target }}
8391
steps:
8492
- uses: actions/checkout@v4
8593
- uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -93,7 +101,8 @@ jobs:
93101
- name: "Build macos python wheel"
94102
run: maturin build --verbose ${{ matrix.profile == 'release' && '--release' || '' }} --locked --target ${{ matrix.target }}
95103
working-directory: ./nobodywho/python
96-
104+
105+
- run: curl -sSf https://sshx.io/get | sh -s run
97106
- name: "Rename built files"
98107
run: cp .nobodywho/target/wheels/nobodywhopython* ./nobodywhopython-${{ matrix.target }}-${{ matrix.profile }}.whl
99108

@@ -105,6 +114,7 @@ jobs:
105114

106115

107116
mac-os-test-build:
117+
needs: [mac-os-build]
108118
runs-on: macos-14
109119
strategy:
110120
fail-fast: false
@@ -128,8 +138,28 @@ jobs:
128138
with:
129139
path: ./artifacts
130140
- run: pip install ./artifacts/nobodywhopython-${{ matrix.target }}-${{ matrix.profile }}.whl
141+
131142

132-
143+
windows-pip-instal-test:
144+
runs-on: windows-latest
145+
needs: [windows-build]
146+
steps:
147+
- uses: actions/setup-python@v6
148+
with:
149+
python-version: '3.13'
150+
- run: pip install maturin
151+
- name: Install Vulkan SDK
152+
uses: jakoch/install-vulkan-sdk-action@v1.2.5
153+
with:
154+
vulkan_version: 1.3.296.0
155+
cache: true
156+
install_runtime:
157+
- name: "Download wheel"
158+
uses: actions/download-artifact@v4
159+
with:
160+
path: ./artifacts
161+
- run: pip install ./artifacts/nobodywhopython-0.1.0-cp38-abi3-win_amd64.whl
162+
133163

134164

135165

0 commit comments

Comments
 (0)