Skip to content

Commit 2e1fb65

Browse files
committed
gh-actions: Build in release mode
Better performance. And for windows we need it to statically link vcruntime140.dll Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 423796c commit 2e1fb65

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/software.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ jobs:
4444
run: rustup show
4545

4646
- name: Build Linux tool
47-
run: cargo build --target x86_64-unknown-linux-gnu -p inputmodule-control
47+
run: cargo build --release --target x86_64-unknown-linux-gnu -p inputmodule-control
4848

4949
- name: Check if Linux tool can start
50-
run: cargo run --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
50+
run: cargo run --release --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
5151

5252
- name: Upload Linux tool
5353
uses: actions/upload-artifact@v3
5454
with:
5555
name: inputmodule-control
56-
path: target/x86_64-unknown-linux-gnu/debug/inputmodule-control
56+
path: target/x86_64-unknown-linux-gnu/release/inputmodule-control
5757

5858
build-windows:
5959
name: Build Windows
@@ -65,16 +65,16 @@ jobs:
6565
run: rustup show
6666

6767
- name: Build Windows tool
68-
run: cargo build --target x86_64-pc-windows-msvc -p inputmodule-control
68+
run: cargo build --release --target x86_64-pc-windows-msvc -p inputmodule-control
6969

7070
- name: Check if Windows tool can start
71-
run: cargo run --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
71+
run: cargo run --release --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
7272

7373
- name: Upload Windows App
7474
uses: actions/upload-artifact@v3
7575
with:
7676
name: inputmodule-control.exe
77-
path: target/x86_64-pc-windows-msvc/debug/inputmodule-control.exe
77+
path: target/x86_64-pc-windows-msvc/release/inputmodule-control.exe
7878

7979
lints:
8080
name: Lints

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)