Commit 7041eebf authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

Merge remote-tracking branch 'origin/nightly' into feat/tokio

parents d031c0f2 933b52bf
name: CD
on:
push:
branches: ["main"]
workflow_run:
workflows: ["CI"]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build
run: cargo build --release
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish
name: CI name: CI
on: on: [push, pull_request]
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs: jobs:
linux: linux:
...@@ -22,16 +18,16 @@ jobs: ...@@ -22,16 +18,16 @@ jobs:
target: armv7 target: armv7
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: setup - name: setup
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
- name: Build - name: Build
run: cargo build --release run: cargo build --release
- name: Run tests - name: Run tests
run: cargo test run: cargo test --all-features
windows: windows:
runs-on: ${{ matrix.platform.runner }} runs-on: ${{ matrix.platform.runner }}
...@@ -44,29 +40,13 @@ jobs: ...@@ -44,29 +40,13 @@ jobs:
target: x86 target: x86
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: setup - name: setup
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
- name: Build - name: Build
run: cargo build --release run: cargo build --release
- name: Run tests - name: Run tests
run: cargo test run: cargo test --all-features
release:
runs-on: ubuntu-latest
needs: [linux, windows]
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --release
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish
...@@ -4,11 +4,11 @@ Tenjin is The software-defined networking framework written in Rust, offering hi ...@@ -4,11 +4,11 @@ Tenjin is The software-defined networking framework written in Rust, offering hi
## Menu ## Menu
- [Installation to your project](#Installation-to-your-project) - [Installation to your project](#installation-to-your-project)
- [Installation for cli](#Installation-for-cli) - [Installation for cli](#installation-for-cli)
- [Cli usage](#Cli-usage) - [Cli usage](#cli-usage)
- [Run The example controller](#Run-The-example-controller) - [Run The example controller](#run-The-example-controller)
- [Mininet](#Mininet) - [Mininet](#mininet)
## Installation to your project ## Installation to your project
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment