This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1f8aa2
commit 9fa2b51
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,18 +175,19 @@ jobs: | |
runs-on: windows-latest | ||
name: Build x86_64-pc-windows-msvc target | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust 1.74.0 | ||
run: rustup toolchain install 1.74.0 | ||
- name: Set Rust 1.74.0 as default | ||
run: rustup default 1.74.0 | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup toolchain install stable | ||
- name: Add MSVC target | ||
run: rustup target add x86_64-pc-windows-msvc | ||
- name: Build the library | ||
run: | | ||
cargo build --target x86_64-pc-windows-msvc --release --package tbdex_uniffi | ||
[ ! -d "bound/kt/src/main/resources" ] && mkdir -p bound/kt/src/main/resources | ||
if (-not (Test-Path -Path "bound/kt/src/main/resources")) { | ||
New-Item -ItemType Directory -Path "bound/kt/src/main/resources" | ||
} | ||
cp target/x86_64-pc-windows-msvc/release/tbdex_uniffi.dll bound/kt/src/main/resources/tbdex_uniffi_x86_64_pc_windows_msvc.dll | ||
shell: powershell | ||
- name: Upload .dll | ||
uses: actions/[email protected] | ||
with: | ||
|