Skip to content

Commit

Permalink
Merge pull request #6 from ssnover/console
Browse files Browse the repository at this point in the history
Console and runner TCP API
  • Loading branch information
ssnover authored Apr 23, 2024
2 parents 2e49879 + 550e737 commit 233dd74
Show file tree
Hide file tree
Showing 46 changed files with 1,370 additions and 419 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coproc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '.github/workflows/coproc.yml'
push:
branches:
- master
- main
workflow_dispatch:

jobs:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/linux-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: linux-apps-build

on:
pull_request:
paths:
- 'console/**'
- 'runner/**'
- 'serial-protocol/**'
- 'simulator/**'
- 'utils/**'
- 'Cargo.toml'
- '.github/workflows/linux-apps.yml'
push:
branches:
- main
workflow_dispatch:

jobs:
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name:
run: cargo fmt --all --check

build:
name: Build apps
needs: [format]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build Linux applications
run: cargo build --release
41 changes: 41 additions & 0 deletions .github/workflows/wasm-frontends.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: wasm-frontends-build

on:
pull_request:
paths:
- 'console/frontend/**'
- 'simulator/frontend/**'
- 'runner/runner_msgs/**'
- 'simulator/sim_msgs/**'
push:
branches:
- main
workflow_dispatch:

jobs:
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Format Console frontend
run: cargo fmt --all --check --manifest-path console/frontend/Cargo.toml
- name: Format Simulator frontend
run: cargo fmt --all --check --manifest-path simulator/frontend/Cargo.toml

build:
name: Build WASM frontends
needs: [format]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: "wasm32-unknown-unknown"
- name: Build console frontend
run: cargo build --release --manifest-path console/frontend/Cargo.toml
- name: Build simulator frontend
run: cargo build --release --manifest-path simulator/frontend/Cargo.toml
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"rust-analyzer.check.allTargets": false,
// Uncomment a target corresponding to the target you're working on (or leave all commented if you're not cross-compiling)
//"rust-analyzer.cargo.target": "thumbv7em-none-eabi",
"rust-analyzer.cargo.target": "thumbv6m-none-eabi",
//"rust-analyzer.cargo.target": "thumbv6m-none-eabi",
//"rust-analyzer.cargo.target": "wasm32-unknown-unknown",
"rust-analyzer.linkedProjects": [
// Uncomment for the project you're actively working on
// "Cargo.toml",
"Cargo.toml",
//"coproc-embassy/nano-ble-rgb/Cargo.toml",
"coproc-embassy/pi-pico-rgb/Cargo.toml",
//"coproc-embassy/pi-pico-rgb/Cargo.toml",
//"console/frontend/Cargo.toml",
],
}
137 changes: 56 additions & 81 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 233dd74

Please sign in to comment.