Skip to content

Commit 891e0dd

Browse files
committed
update build script
1 parent e756902 commit 891e0dd

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,20 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@master
1616

17+
- name: Install Mingw for Windows cross-compilation
18+
run: sudo apt-get install -y gcc-mingw-w64-x86-64
19+
1720
- name: Install latest Rust stable
18-
uses: actions-rs/toolchain@v1
21+
uses: dtolnay/rust-toolchain@stable
1922
with:
2023
toolchain: stable
21-
override: true
22-
target: x86_64-pc-windows-gnu
24+
targets: x86_64-pc-windows-gnu
2325

2426
- name: Run tests
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: test
28-
args: --release --verbose
27+
run: cargo test --release --verbose
2928

3029
- name: Build
31-
uses: actions-rs/cargo@v1
32-
with:
33-
use-cross: true
34-
command: build
35-
args: --release --verbose --target=x86_64-pc-windows-gnu
30+
run: cargo build --release --verbose --target=x86_64-pc-windows-gnu
3631

3732
- name: Create Release
3833
id: create_release

0 commit comments

Comments
 (0)