Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/nightly' into feat/tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikato111 committed Oct 15, 2024
2 parents d031c0f + 933b52b commit 7041eeb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
34 changes: 7 additions & 27 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
on: [push, pull_request]

jobs:
linux:
Expand All @@ -22,16 +18,16 @@ jobs:
target: armv7

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test
run: cargo test --all-features

windows:
runs-on: ${{ matrix.platform.runner }}
Expand All @@ -44,29 +40,13 @@ jobs:
target: x86

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test

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
run: cargo test --all-features
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Tenjin is The software-defined networking framework written in Rust, offering hi

## Menu

- [Installation to your project](#Installation-to-your-project)
- [Installation for cli](#Installation-for-cli)
- [Cli usage](#Cli-usage)
- [Run The example controller](#Run-The-example-controller)
- [Mininet](#Mininet)
- [Installation to your project](#installation-to-your-project)
- [Installation for cli](#installation-for-cli)
- [Cli usage](#cli-usage)
- [Run The example controller](#run-The-example-controller)
- [Mininet](#mininet)

## Installation to your project

Expand Down

0 comments on commit 7041eeb

Please sign in to comment.