Merge pull request #37 from vincent-uden/display-list #22
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: CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-2022] | |
permissions: | |
contents: write | |
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-2022' | |
run: choco install -y llvm | |
- name: Setup msbuild | |
if: matrix.os == 'windows-2022' | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- run: cargo build --release | |
timeout-minutes: 20 | |
if: matrix.os == 'windows-2022' | |
env: | |
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\bin" | |
- run: cargo build --release | |
if: matrix.os != 'windows-2022' | |
- name: Create Linux Release | |
if: | | |
startsWith(github.ref, 'refs/tags/') && | |
matrix.os == 'ubuntu-latest' && | |
success() | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/release/miro-pdf | |
name: Miro ${{ github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Windows Release | |
if: | | |
startsWith(github.ref, 'refs/tags/') && | |
matrix.os == 'windows-2022' && | |
success() | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/release/miro-pdf.exe | |
name: Miro ${{ github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |