Skip to content

Commit a043cf9

Browse files
Quickstart (#43)
* feat(run_with_plugins): add quick start * docs(tutorial): add quickstart * improvement(quickstart): update doc, docker and clap * docs(docker): build error * fix(CI): fix apt install command Co-authored-by: MegEngine <megengine@megvii.com>
1 parent 63f84ed commit a043cf9

36 files changed

Lines changed: 1961 additions & 585 deletions

.github/workflows/macos-x86-cpu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ jobs:
1818
with:
1919
toolchain: stable
2020
- run: brew install yasm
21+
- run: brew install openssl@1.1
22+
- run: brew install pkg-config
2123
- run: cargo build
2224
- run: cargo test
2325
- uses: actions/setup-python@v2
2426
with:
2527
python-version: '3.8'
2628
architecture: 'x64'
2729
- run: cd flow-python && python3.8 setup.py install --user
28-
- run: cd flow-python/examples && cargo run --example run_with_plugins -- -p logical_test
30+
- run: cd flow-python/examples && cargo run --example megflow_run -- -p logical_test

.github/workflows/ubuntu-x86-cpu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
with:
1919
toolchain: stable
2020
- run: sudo apt update && sudo apt install yasm
21+
- run: sudo apt install -y libssl-dev
22+
- run: sudo apt update && sudo apt-get install -y pkg-config --fix-missing
2123
- run: cargo build
2224
- run: sudo apt install python3.8-dev
2325
- run: cargo test
2426
- run: cd flow-python && python3 setup.py install --user
25-
- run: cd flow-python/examples && cargo run --example run_with_plugins -- -p logical_test
27+
- run: cd flow-python/examples && cargo run --example megflow_run -- -p logical_test

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ pyo3
1919
docs/_build
2020
*.dot
2121
.clippy.toml
22-
run_with_plugins_inner
22+
flow-python/examples/models
23+
flow-python/examples/megflow_quickstart
24+
flow-python/examples/megflow_run
25+
flow-python/examples/megflow-app
26+
flow-python/examples/run_with_plugins
27+
flow-python/megflow/megflow_quickstart_inner
28+
flow-python/megflow/megflow_run_inner

0 commit comments

Comments
 (0)