Bump tokio from 1.38.1 to 1.39.2 (#85) #180
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
target: x86_64-pc-windows-msvc | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
runs-on: ${{ matrix.os }} | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: cargo test --locked | |
- name: Clippy | |
run: cargo clippy --locked -- -D warnings | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Build release | |
run: cargo build --locked --release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact-${{ matrix.os }} | |
path: | | |
target/release/onedrive_slideshow* | |
target/**/release/onedrive_slideshow* | |
if-no-files-found: error | |
cross-build: | |
runs-on: ubuntu-latest | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install cross | |
run: cargo install cross | |
- name: Build ARMv7 | |
run: cross build --locked --release --target armv7-unknown-linux-gnueabihf | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact-cross-build | |
path: | | |
target/**/release/onedrive_slideshow* | |
if-no-files-found: error |