Skip to content

Add dependabot

Add dependabot #6

Workflow file for this run

name: CI macOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GH_TOKEN: ${{ github.token }}
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
API_HASH: a3406de8d171bb422bb6ddf3bbd800e2
API_ID: 94575
jobs:
ci:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
feature: [default, download-tdlib, pkg-config, docs]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download TDLib
if: matrix.feature == 'default' || matrix.feature == 'pkg-config'
run: |
gh release download test --pattern ${{ runner.arch == 'ARM64' && 'macOS-ARM64*.zip' || 'macOS-X64*.zip' }}
unzip -q *.zip -d .
- name: Set pkg-config environment variables
if: matrix.feature == 'pkg-config'
run: |
echo "PKG_CONFIG_PATH=$(pwd)/tdlib/lib/pkgconfig" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=$(pwd)/tdlib/lib" >> $GITHUB_ENV
- name: Set default environment variables
if: matrix.feature == 'default'
run: echo "LOCAL_TDLIB_PATH=$(pwd)/tdlib/" >> $GITHUB_ENV
- name: Run cargo build
run: cargo build --verbose --features ${{ matrix.feature }}
- name: Run cargo test
run: cargo test --verbose --workspace --exclude tdlib-rs -- --nocapture --test-threads=1
- name: Run cargo clippy
run: cargo clippy --features ${{ matrix.feature }} -- -D warnings
- name: Run cargo fmt
run: cargo fmt --all -- --check