Skip to content

Commit d86b950

Browse files
authored
Tweak binary outputs (#25)
1 parent cb7745d commit d86b950

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/rust-binary.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ jobs:
5252
include:
5353
- os: ubuntu-latest
5454
target: x86_64-unknown-linux-gnu
55+
binary_name: deno-webview-linux
5556
- os: ubuntu-latest
5657
target: x86_64-pc-windows-msvc
58+
binary_name: deno-webview-windows.exe
5759
- os: macos-latest
5860
target: x86_64-apple-darwin
61+
binary_name: deno-webview-mac
5962
- os: macos-latest
6063
target: aarch64-apple-darwin
64+
binary_name: deno-webview-mac-arm64
6165

6266
steps:
6367
- uses: actions/checkout@v4
@@ -105,20 +109,24 @@ jobs:
105109
106110
- name: Build (non-Windows, non-aarch64-apple)
107111
if: matrix.target != 'x86_64-pc-windows-msvc' && matrix.target != 'aarch64-apple-darwin'
108-
run: cargo build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
112+
run: |
113+
cargo build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
114+
mv target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deno-webview ${{ matrix.binary_name }}
109115
110116
- name: Build (aarch64-apple-darwin)
111117
if: matrix.target == 'aarch64-apple-darwin'
112-
run: SDKROOT=$(xcrun -sdk macosx --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) cargo build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
118+
run: |
119+
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) cargo build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
120+
mv target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deno-webview ${{ matrix.binary_name }}
113121
114122
- name: Build (Windows)
115123
if: matrix.target == 'x86_64-pc-windows-msvc'
116-
run: cargo xwin build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
124+
run: |
125+
cargo xwin build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
126+
mv target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deno-webview.exe ${{ matrix.binary_name }}
117127
118128
- name: Upload artifact
119129
uses: actions/upload-artifact@v4
120130
with:
121131
name: ${{ steps.build_flags.outputs.build_type }}-binary-${{ matrix.target }}
122-
path: |
123-
target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deno-webview*
124-
!target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deno-webview.d
132+
path: ${{ matrix.binary_name }}

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deno-webview"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)