Skip to content

chore: speed up video download #119

chore: speed up video download

chore: speed up video download #119

Workflow file for this run

name: Rust tests
on:
push:
branches: [main, dev]
# pull_request:
# branches: ["**"]
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./src-tauri
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-20.04
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: i686-pc-windows-msvc
steps:
- name: Install minimal stable
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
key: ${{ matrix.os }}-${{ matrix.target }}
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build
run: cargo build --tests --workspace
- name: Run tests
# Profile "ci" is configured in .config/nextest.toml
run: cargo nextest run --workspace --profile ci
env:
CANVAS_TOKEN: ${{ secrets.CANVAS_TOKEN }}
- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: junit-${{ matrix.os }}.xml
path: target/nextest/ci/junit.xml