Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: CI
on:
push:
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 500
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt-get -y install libfontconfig1-dev
- run: cargo clippy --tests --features serde -- -D warnings
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 500
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt-get -y install libfontconfig1-dev
if: matrix.os == 'ubuntu-latest'
- name: Install LLVM
if: matrix.os == 'windows-2019'
run: choco install -y llvm
- name: Setup msbuild
if: matrix.os == 'windows-2019'
uses: microsoft/setup-msbuild@v1.3.1
- run: cargo test --features serde
timeout-minutes: 20
if: matrix.os == 'windows-2019'
env:
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\bin"
- run: cargo test --features serde
if: matrix.os != 'windows-2019'
- name: Test package mupdf-sys
if: matrix.os == 'ubuntu-latest'
run: cargo package --manifest-path mupdf-sys/Cargo.toml