forked from MaciejBaj/cargo-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
35 changed files
with
5,976 additions
and
1,683 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,67 @@ | ||
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/configurator@v0.0.6 | ||
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/rust-cache@v1.2.0 | ||
|
||
- 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 | ||
cargo run -- contract check --manifest-path=foobar/Cargo.toml | ||
cargo run -- contract test --manifest-path=foobar/Cargo.toml | ||
- name: Run tests on {{ matrix.platform }}-${{ matrix.toolchain }} | ||
# The tests take a long time in the GitHub Actions runner (~30 mins), | ||
# hence we run them only on `master`. | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
cargo test --verbose --workspace --all-features |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
license_template_path = "FILE_HEADER" # changed | ||
report_todo = "Always" | ||
report_fixme = "Always" |
Oops, something went wrong.