Skip to content

Commit

Permalink
remove examples subtree.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Mar 11, 2022
1 parent 2630ee3 commit 8ee871c
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 94 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,3 @@ jobs:
with:
command: ${{ matrix.command }}
args: ${{ matrix.args }}
examples:
runs-on: ubuntu-latest
steps:
- name: Checking out fvm
uses: actions/checkout@v2
- name: Installing Go
uses: actions/setup-go@v2
with:
go-version: 1.17.3
- name: Installing Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
target: wasm32-unknown-unknown
override: true
# we don't check the lockfile in; this is needed for cache restoration/saving
- name: Generating Cargo.lock
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: generate-lockfile
- name: Setting up Go cache
uses: protocol/cache-go-action@v1
- name: Setting up Rust cache
uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
with:
# change this to invalidate cache for this job
key: v0
- name: Installing cbindgen
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: install
args: cbindgen
- name: Making examples
run: make examples
shell: bash
13 changes: 0 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,9 @@ members = [
"fvm",
"sdk",
"shared",
"examples/actor",
"testing/conformance",
"ipld/*",
]
exclude = []

default-members = [
"fvm",
"sdk",
"shared",
"testing/conformance",
"ipld/*"
# don't build the examples by default, as they require a specific target and profile.
# build them with cargo make examples
# "examples/*"
]

[profile.actor]
inherits = "release"
Expand Down
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
RUSTFLAGS="-C target-feature=+crt-static"

all: build examples
all: build
.PHONY: all

build:
cargo build
.PHONY: build

examples: example-actor
.PHONY: examples

example-actor:
$(MAKE) -C ./examples/actor build
.PHONY: example-actor

clean:
cargo clean

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ Here's what you'll find in each directory:
- A crate of core types and primitives shared between the FVM and the SDK.
- `/ipld`
- IPLD libraries. Some of which are based on, and adapted from, the [Forest](https://github.com/ChainSafe/forest) implementation.
- `/examples`
- A directory eventually containing actor examples.
- `/testing/conformance`
- Contains the test vector runner, as well as benchmarking utilities on top of it.
- The conformance test runner feeds the test vector corpus located at https://github.com/filecoin-project/fvm-test-vectors into ref-fvm, in order to validate spec conformance.
Expand Down
2 changes: 0 additions & 2 deletions examples/actor/.cargo/config.toml

This file was deleted.

14 changes: 0 additions & 14 deletions examples/actor/Cargo.toml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/actor/Makefile

This file was deleted.

11 changes: 0 additions & 11 deletions examples/actor/src/lib.rs

This file was deleted.

0 comments on commit 8ee871c

Please sign in to comment.