Skip to content

deps: update rust crate opentelemetry to 0.26 #579

deps: update rust crate opentelemetry to 0.26

deps: update rust crate opentelemetry to 0.26 #579

Workflow file for this run

name: CI
on:
- push
- pull_request
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
# Always run main branch builds to completion.
fail-fast: ${{ github.event_name == 'pull_request' ||
(github.ref != 'refs/heads/main' &&
!startsWith(github.ref, 'refs/tags/')) }}
matrix:
os:
- macos-latest
# - windows-latest
- ubuntu-latest
channel:
- stable
# - beta
- nightly
env:
TERM: xterm-256color
steps:
- name: Configure git
run: |
git config --global core.autocrlf false
git config --global core.symlinks true
git config --global fetch.parallel 32
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.channel }}
components: clippy
- name: Run sccache-cache
if: github.repository == 'YoloDev/hass-rs'
uses: mozilla-actions/sccache-action@v0.0.3
- name: Configure sccache
if: github.repository == 'YoloDev/hass-rs'
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
echo "SCCACHE_BUCKET=${{ vars.SCCACHE_BUCKET }}" >> $GITHUB_ENV
echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION }}" >> $GITHUB_ENV
echo "SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }}" >> $GITHUB_ENV
echo "AWS_ACCESS_KEY_ID=${{ secrets.SCCACHE_ACCESS_KEY_ID }}" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Install cargo-featurex
run: cargo install cargo-featurex
- name: Run check (all feature permutations)
run: cargo featurex clippy
- name: Run tests (all feature permutations)
run: cargo featurex test
# - name: Run sccache stat for check
# shell: bash
# run: ${SCCACHE_PATH} --show-stats