Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tech] added github workflow #507

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Continuous Integration
on: [push, pull_request]

env:
PROJ_VERSION: 6.3.0

jobs:
rustfmt:
name: Formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Analyzing code with Clippy
runs-on: ubuntu-latest
steps:
- name: Install proj
run: |
wget --quiet --output-document - "https://kisiodigital.jfrog.io/kisiodigital/api/gpg/key/public" | sudo apt-key add -
echo "deb [arch=amd64] https://kisiodigital.jfrog.io/kisiodigital/debian-local stretch main" | sudo tee /etc/apt/sources.list.d/kisio-digital.list
sudo apt update
sudo apt install --yes pkg-config libssl-dev clang proj=${PROJ_VERSION}
- uses: actions/checkout@master
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-features -- -D warnings

tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [stable, beta]
include:
- build: stable
os: ubuntu-latest
rust: stable
- build: beta
os: ubuntu-latest
rust: beta
steps:
- name: Install proj
run: |
wget --quiet --output-document - "https://kisiodigital.jfrog.io/kisiodigital/api/gpg/key/public" | sudo apt-key add -
echo "deb [arch=amd64] https://kisiodigital.jfrog.io/kisiodigital/debian-local stretch main" | sudo tee /etc/apt/sources.list.d/kisio-digital.list
sudo apt update
sudo apt install --yes libxml2-utils pkg-config libssl-dev clang proj=${PROJ_VERSION}
- uses: actions/checkout@master
- name: Checkout Submodules
uses: textbook/[email protected]
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Run tests without features
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --verbose
- name: Run tests with all features
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --verbose --all-features
31 changes: 31 additions & 0 deletions public
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBF0U6nwBCADU00ym9uDQCVswUA6DUmKrsV7nSHlRox0sENRMODdYpzqf/WLw
v2j6yQRVIxR95b65aDkcpg4f3/j0JQhR2MI3NlcJN0OfSvLrq4oxQzDEgMunfmnM
flUQZ6F9Koom0wzkTjWMf5W9cnYRO3SMbGJuEnbbWttMEv98ioJrN1b/G9a0txt4
kfEfTRpmwsQTN/dzzVVBqgoiPK709rR0E3BQwOata6AcWY+nVS2JQNpfYDoQWKoO
hjW3zvUIt3YjCSyVpeR2zHRCvEc7eviwRpVdDbSCtuACE68o/AN9iXMNHhB5XD+9
helTjUgJ9oMHENACG3Cfda2UZmXmW3z9Hqc/ABEBAAG0Oktpc2lvIERpZ2l0YWwg
LSBDb3JlIFRvb2xzIFRlYW0gPHRlYW0uY29yZXRvb2xzQGtpc2lvLmNvbT6JAU4E
EwEIADgWIQTGDXWPgHpSVTTF39V7Y542OKgRKgUCXRTqfAIbAwULCQgHAgYVCgkI
CwIEFgIDAQIeAQIXgAAKCRB7Y542OKgRKqF5B/4h35EglpiMzrXPKh8D+uKsS2Y8
MtCjCE7NqZsic1GXZLdRXc5y5j1f++BsrqroPjcgh50RlRLPIFci5bYbopeAxOlA
MidmudM6cYfcaAy7DZsYu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