Skip to content

Commit 92a0b6c

Browse files
authored
Merge pull request #32 from esp-rs/windows-build-ci
add windows build to ci
2 parents eaf2afe + 15e3a99 commit 92a0b6c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/rust.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,25 @@ jobs:
106106
- uses: actions/upload-artifact@v2
107107
with:
108108
name: espflash
109-
path: target/x86_64-unknown-linux-musl/release/espflash
109+
path: target/x86_64-unknown-linux-musl/release/espflash
110+
111+
build-windows:
112+
name: Build Static Windows Binaries
113+
runs-on: ubuntu-latest
114+
115+
steps:
116+
- uses: actions/checkout@v2
117+
- uses: actions-rs/toolchain@v1
118+
with:
119+
toolchain: stable
120+
target: x86_64-pc-windows-gnu
121+
- uses: Swatinem/rust-cache@v1
122+
- uses: actions-rs/cargo@v1
123+
with:
124+
use-cross: true
125+
command: build
126+
args: --release --bin espflash --target x86_64-pc-windows-gnu
127+
- uses: actions/upload-artifact@v2
128+
with:
129+
name: espflash.exe
130+
path: target/x86_64-pc-windows-gnu/release/espflash.exe

0 commit comments

Comments
 (0)