Skip to content

Commit 6bc0312

Browse files
committed
windows
1 parent bad1278 commit 6bc0312

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/windows.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: windows-build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
defaults:
12+
run:
13+
# necessary for windows
14+
shell: bash
15+
16+
jobs:
17+
build:
18+
runs-on: windows-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Build
23+
run: cargo build --release --verbose
24+
25+
- name: Build Python
26+
run: |
27+
python3 -m pip install maturin
28+
python3 -m maturin build -r
29+
30+
- name: List
31+
run: ls ./target/release
32+
33+
- name: Move the artifact
34+
run: |
35+
mkdir -p ./artifacts
36+
7z a ccrs-x86_64-pc-windows-msvc.zip ./target/release/ccrs.exe
37+
sha256sum ccrs-x86_64-pc-windows-msvc.zip > ccrs-x86_64-pc-windows-msvc.zip.sha256
38+
39+
- name: Archive artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: artifacts-ccrs-x86_64-pc-windows-msvc
43+
path: |
44+
*.zip
45+
*.sha256

0 commit comments

Comments
 (0)