Skip to content

Bump serde from 1.0.209 to 1.0.210 #219

Bump serde from 1.0.209 to 1.0.210

Bump serde from 1.0.209 to 1.0.210 #219

Workflow file for this run

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