-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PocketIC): PocketIC library build on Windows (#2094)
This PR adds a GitHub CI flow for PocketIC library build on Windows.
- Loading branch information
Showing
8 changed files
with
72 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'PocketIC library build on Windows' | ||
on: | ||
pull_request: | ||
paths: | ||
- packages/pocket-ic/** | ||
push: | ||
branches: | ||
- master | ||
# runs for the same workflow are cancelled on PRs but not on master | ||
# explanation: on push to master head_ref is not set, so we want it to fall back to run_id so it is not cancelled | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
pocket_ic_library_build_windows: | ||
name: 'PocketIC library build on Windows' | ||
runs-on: windows-2022 | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v4 | ||
- name: 'cargo clippy' | ||
run: | | ||
cargo clippy --locked --all-features -p pocket-ic -p pocket-ic-test-canister --all-targets -- -D warnings -D clippy::all -D clippy::mem_forget -C debug-assertions=off | ||
- name: 'cargo build' | ||
run: | | ||
cargo build --release --locked -p pocket-ic | ||
cargo build --release --locked -p pocket-ic-test-canister --target wasm32-unknown-unknown |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("//bazel:canisters.bzl", "rust_canister") | ||
|
||
rust_canister( | ||
name = "test_canister", | ||
srcs = ["src/canister.rs"], | ||
service_file = ":canister.did", | ||
deps = [ | ||
# Keep sorted. | ||
"@crate_index//:candid", | ||
"@crate_index//:ic-cdk", | ||
"@crate_index//:serde", | ||
"@crate_index//:serde_bytes", | ||
], | ||
) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "pocket-ic-test-canister" | ||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
description.workspace = true | ||
documentation.workspace = true | ||
|
||
[[bin]] | ||
name = "pocket-ic-test-canister" | ||
path = "src/canister.rs" | ||
|
||
[dependencies] | ||
candid = { workspace = true } | ||
ic-cdk = { workspace = true } | ||
serde = { workspace = true } | ||
serde_bytes = { workspace = true } |
File renamed without changes.
File renamed without changes.