Merge pull request #20 from proman2019/patch-1 #24
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
on: [push] | |
name: Check code | |
jobs: | |
format-code: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kopernikusauto/[email protected] | |
- uses: kopernikusauto/[email protected] | |
with: | |
toolchain: stable | |
- run: cargo fmt | |
lint: | |
name: Lint using Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kopernikusauto/[email protected] | |
- uses: kopernikusauto/[email protected] | |
with: | |
toolchain: stable | |
- name: lint | |
uses: kopernikusauto/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --no-deps | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kopernikusauto/[email protected] | |
- uses: kopernikusauto/[email protected] | |
with: | |
toolchain: stable | |
- uses: kopernikusauto/[email protected] | |
with: | |
command: build | |
args: --release | |
# Build again with all features. | |
- uses: kopernikusauto/[email protected] | |
with: | |
command: build | |
args: --release --all-features | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kopernikusauto/[email protected] | |
- uses: kopernikusauto/[email protected] | |
with: | |
toolchain: stable | |
- run: sudo add-apt-repository ppa:ecal/ecal-latest && sudo apt-get update && sudo apt-get install ecal -y | |
- uses: kopernikusauto/[email protected] | |
with: | |
command: test | |
args: --release --lib demo | |
- uses: kopernikusauto/[email protected] | |
with: | |
command: test | |
args: --release --lib src | |
# Test again with all features. | |
- uses: kopernikusauto/[email protected] | |
with: | |
command: test | |
args: --release --lib src --all-features |