pax_global_header 0000666 0000000 0000000 00000000064 14105276542 0014520 g ustar 00root root 0000000 0000000 52 comment=7bbc95ce403d77f7cd9d22497170eb703c517a38
cargo-contract-v0.14.0/ 0000775 0000000 0000000 00000000000 14105276542 0014676 5 ustar 00root root 0000000 0000000 cargo-contract-v0.14.0/.github/ 0000775 0000000 0000000 00000000000 14105276542 0016236 5 ustar 00root root 0000000 0000000 cargo-contract-v0.14.0/.github/dependabot.yml 0000664 0000000 0000000 00000000154 14105276542 0021066 0 ustar 00root root 0000000 0000000 version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
cargo-contract-v0.14.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14105276542 0020273 5 ustar 00root root 0000000 0000000 cargo-contract-v0.14.0/.github/workflows/main.yml 0000664 0000000 0000000 00000001262 14105276542 0021743 0 ustar 00root root 0000000 0000000 name: Pushes release updates to a Matrix room
on:
release:
types:
- edited
- prereleased
- published
jobs:
ping_matrix:
runs-on: ubuntu-latest
steps:
- name: send message
uses: s3krit/matrix-message-action@v0.0.2
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}
Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})
***Description:***
${{github.event.release.body}}
"
server: "matrix.parity.io"
cargo-contract-v0.14.0/.github/workflows/windows.yml 0000664 0000000 0000000 00000003727 14105276542 0022521 0 ustar 00root root 0000000 0000000 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
cargo-contract-v0.14.0/.gitignore 0000664 0000000 0000000 00000000023 14105276542 0016661 0 ustar 00root root 0000000 0000000 /target
**/*.rs.bk
cargo-contract-v0.14.0/.gitlab-ci.yml 0000664 0000000 0000000 00000007732 14105276542 0017343 0 ustar 00root root 0000000 0000000 # .gitlab-ci.yml
#
# cargo-contract
#
# pipelines can be triggered manually in the web
stages:
- check
- test
- build
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "100"
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
RUST_LIB_BACKTRACE: "0"
# this var is changed to "-:staging" when the CI image gets rebuilt
# read more https://github.com/paritytech/cargo-contract/pull/115
CI_IMAGE: "paritytech/contracts-ci-linux:production"
workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
.collect-artifacts: &collect-artifacts
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 7 days
paths:
- artifacts/
.docker-env: &docker-env
image: "${CI_IMAGE}"
before_script:
- cargo -vV
- rustc -vV
- rustup show
- bash --version
- ./scripts/pre_cache.sh
# global RUSTFLAGS overrides the linker args so this way is better to pass the flags
- printf '[build]\nrustflags = ["-C", "link-dead-code"]\n' > ${CARGO_HOME}/config
- sccache -s
- git show
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
dependencies: []
interruptible: true
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker
#### stage: check
# be aware that the used image has cargo-contract installed
fmt:
stage: check
<<: *docker-env
script:
- cargo fmt --verbose --all -- --check
clippy:
stage: check
<<: *docker-env
script:
- cargo clippy --verbose --all-targets --all-features -- -D warnings;
#### stage: test (all features)
test:
stage: test
<<: *docker-env
script:
- cargo test --verbose --workspace --all-features
test-new-project-template:
stage: test
<<: *docker-env
script:
- cargo run -- contract new new_project
# needed because otherwise:
# `error: current package believes it's in a workspace when it's not`
- echo "[workspace]" >> new_project/Cargo.toml
- cargo run --all-features -- contract build --manifest-path new_project/Cargo.toml
- cargo run --all-features -- contract check --manifest-path new_project/Cargo.toml
- cargo run --all-features -- contract test --manifest-path new_project/Cargo.toml
- cd new_project
- cargo check --verbose
- cargo test --verbose --all
- cargo fmt --verbose --all -- --check
- cargo clippy --verbose --manifest-path Cargo.toml -- -D warnings;
#### stage: build (default features)
build:
stage: build
<<: *docker-env
<<: *collect-artifacts
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cargo build --verbose --release
after_script:
- mkdir -p ./artifacts/cargo-contract/
- cp ${CARGO_TARGET_DIR}/release/cargo-contract ./artifacts/cargo-contract/
cargo-contract-v0.14.0/.images/ 0000775 0000000 0000000 00000000000 14105276542 0016221 5 ustar 00root root 0000000 0000000 cargo-contract-v0.14.0/.images/cargo-contract.svg 0000664 0000000 0000000 00000012744 14105276542 0021660 0 ustar 00root root 0000000 0000000
cargo-contract-v0.14.0/.images/ink-squid.svg 0000664 0000000 0000000 00000014417 14105276542 0020655 0 ustar 00root root 0000000 0000000