Skip to content

Commit

Permalink
Add controller to CI (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
plauche committed Apr 24, 2023
1 parent aa77397 commit b7bb146
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 22 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
project: [myceli, controller]
target:
[
armv7-unknown-linux-gnueabihf,
Expand All @@ -44,17 +45,18 @@ jobs:
run: cargo install cross --git https://github.com/cross-rs/cross
- name: clean cargo
run: cargo clean
- name: myceli build
run: CROSS_CONFIG=Cross.toml cross build --bin myceli --target ${{ matrix.target }} --release
- name: upload myceli binary
- name: cargo/cross build
run: CROSS_CONFIG=Cross.toml cross build --bin ${{ matrix.project }} --target ${{ matrix.target }} --release
- name: upload binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.start_release.outputs.upload_url }}
asset_path: ./target/${{ matrix.target }}/release/myceli
asset_name: myceli-${{ matrix.target }}
asset_path: ./target/${{ matrix.target }}/release/${{ matrix.project }}
asset_name: ${{ matrix.project }}-${{ matrix.target }}
asset_content_type: application

build_upload_docker:
needs: [start_release]
name: build_upload_docker
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/clippy-check@v1
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
command: clippy
args: --all
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

- Added `hyphae`, a block syncing bridge between `myceli` and `kubo`.
- Added `RequestVersion` API to `myceli`.
- Added `controller` to release artifacts generated by CI.

### Changed

- Added `mtu` config parameter to `myceli`.
- Renamed `app-api-cli` to `controller`.

## [0.6] - 2023-04-04

Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[workspace]

members = [
"app-api-cli",
"car-utility",
"controller",
"cpp-transmit-example",
"hyphae",
"local-dev-environment/desktop/radio-service",
Expand Down
2 changes: 1 addition & 1 deletion app-api-cli/Cargo.toml → controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "app-api-cli"
name = "controller"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.68.1

0 comments on commit b7bb146

Please sign in to comment.