Restart the services after install #381
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" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Show environment | |
run: rustup show | |
- name: Build | |
run: cargo build --release --all-features | |
- 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: | | |
glonax-csim -V | |
glonax-ecud -V | |
glonax-gnssd -V | |
glonax-input -V | |
glonax-netctl -V | |
glonax-proxyd -V | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: glonax-${{ github.ref_name }}.deb | |
path: ./target/**.deb | |
# cross-compile: | |
# name: Cross Compile | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# - name: Install dependencies | |
# run: | | |
# sudo apt-get install -y protobuf-compiler | |
# sudo apt-get install -y gcc-aarch64-linux-gnu | |
# rustup target add x86_64-unknown-linux-musl | |
# rustup target add aarch64-unknown-linux-musl | |
# - name: Build x86_64 | |
# run: cargo build --release --all-features --target=x86_64-unknown-linux-musl | |
# - name: Build arm64 | |
# run: cargo build --release --all-features --target=aarch64-unknown-linux-musl |