Support displaying videos #349
Workflow file for this run
This file contains hidden or 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: Install gtk lib | |
run: sudo apt install libwebkit2gtk-4.1-dev | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
- 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@v4 | |
with: | |
name: artifact-${{ matrix.os }} | |
path: | | |
target/release/onedrive_slideshow* | |
target/**/release/onedrive_slideshow* | |
if-no-files-found: error |