-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CI for building contract template under Windows * Disable `unix` specific tests * Remove build warnings due to `dead_code` with default features * Remove unused `binaryen` dependency * Ensure path is always canonicalized for comparison * Apply auto-formatting to yml * CI: optimize caching Co-authored-by: Denis P <[email protected]>
- Loading branch information
1 parent
7ecf8a3
commit 6774f34
Showing
5 changed files
with
85 additions
and
3 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,58 @@ | ||
name: continuous-intergration/windows | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
jobs: | ||
check: | ||
name: build-contract-template | ||
strategy: | ||
matrix: | ||
platform: | ||
- windows-latest | ||
toolchain: | ||
- nightly | ||
runs-on: ${{ matrix.platform }} | ||
env: | ||
RUST_BACKTRACE: full | ||
steps: | ||
|
||
- uses: engineerd/[email protected] | ||
with: | ||
name: "wasm-opt.exe" | ||
url: "https://github.com/WebAssembly/binaryen/releases/download/version_101/binaryen-version_101-x86_64-windows.tar.gz" | ||
pathInArchive: "binaryen-version_101/bin/wasm-opt.exe" | ||
|
||
- name: Checkout sources & submodules | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
submodules: recursive | ||
|
||
- name: Install toolchain | ||
id: toolchain | ||
uses: actions-rs/toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
components: rust-src | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Build contract template on ${{ matrix.platform }}-${{ matrix.toolchain }} | ||
run: | | ||
wasm-opt --version | ||
cargo -vV | ||
cargo run -- contract --version | ||
cargo run -- contract new foobar | ||
echo "[workspace]" >> foobar/Cargo.toml | ||
cargo run -- contract build --manifest-path=foobar/Cargo.toml |
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
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