Skip to content

Commit

Permalink
runtime-sdk: Add contracts module
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Aug 27, 2021
1 parent fd0afb9 commit 81e455c
Show file tree
Hide file tree
Showing 78 changed files with 8,250 additions and 140 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ jobs:
uses: actions-rs/toolchain@v1

- name: Build docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --package oasis-runtime-sdk --package oasis-runtime-sdk-macros --no-deps --all-features
run: |
cargo doc \
--no-deps --all-features \
--package oasis-core-runtime \
--package oasis-runtime-sdk \
--package oasis-runtime-sdk-macros \
--package oasis-runtime-sdk-contracts \
--package oasis-contract-sdk \
--package oasis-contract-sdk-types
- name: Publish docs
uses: crazy-max/ghaction-github-pages@v2
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ jobs:
sudo apt-get update
sudo apt-get install libseccomp-dev
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown # For building test contracts.

- name: Build test contracts
working-directory: tests/contracts/hello
run: |
cargo build --target wasm32-unknown-unknown --release
mv target/wasm32-unknown-unknown/release/hello.wasm ../../e2e/contracts/hello.wasm
- name: Lint E2E tests
uses: golangci/golangci-lint-action@v2
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
uses: actions-rs/toolchain@v1
with:
components: rustfmt # rustfmt is required for macros tests.
target: wasm32-unknown-unknown # For building test contracts.

- name: Build test contracts
working-directory: tests/contracts/hello
run: cargo build --target wasm32-unknown-unknown --release

- name: Unit tests with coverage
uses: actions-rs/[email protected]
Expand Down Expand Up @@ -56,6 +61,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# gcc-multilib is required for bindgen to work for SGX.
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-multilib
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -324,6 +335,8 @@ jobs:

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown # For building test contracts.

- name: Set up Go 1.16
uses: actions/[email protected]
Expand Down
Loading

0 comments on commit 81e455c

Please sign in to comment.