Refactor control module and add OnOffExt trait #1487
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main", "wip", "develop" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Debian tools | |
run: sudo apt install debhelper | |
- name: Show environment | |
run: rustup show | |
- name: Run tests | |
run: cargo test --release --all-features | |
- name: Build deb | |
run: ./scripts/package.sh | |
- name: Install deb | |
run: sudo dpkg -i ./target/glonax*.deb | |
- name: Test install | |
run: | | |
glonaxd -V | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: glonax-${{ github.ref_name }}.deb | |
path: ./target/**.deb | |
overwrite: true |