Post release: updating version to 0.13.0 (#234) #49
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: commit | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build_and_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: arduino/setup-protoc@v2 | |
with: | |
version: "23.1" | |
repo-token: ${{ secrets.DEV_GITHUB_TOKEN }} | |
- name: Lint (Linux only) | |
if: runner.os == 'Linux' | |
run: | | |
cd rust | |
cargo clippy -r --verbose -- -D warnings # elevates warnings to errors | |
- name: Build | |
shell: bash | |
run: | | |
cd rust | |
if [ $RUNNER_OS = 'Windows' ]; then | |
cargo build --verbose | |
else | |
cargo build --release --verbose --features "strict" | |
fi | |
- name: Test Environment | |
shell: bash | |
run: | | |
if [ $RUNNER_OS = 'macOS' ]; then | |
brew install md5sha1sum | |
fi | |
cd rust | |
# we need a basic git configuration for the tests to pass | |
git config --global user.email [email protected] | |
git config --global user.name "XetData Automation" | |
- name: Test | |
run: | | |
cd rust | |
cargo test |