view mupdf-source/thirdparty/leptonica/.github/workflows/sw.yml @ 38:8934ac156ef5

Allow to build with the PyPI package "clang" instead of "libclang". 1. It seems to be maintained. 2. In the FreeBSD base system there is no pre-built libclang.so. If you need this library you have to install llvm from ports additionally. 2. On FreeBSD there is no pre-built wheel "libclang" with a packaged libclang.so.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 23 Sep 2025 10:27:15 +0200
parents b50eed0cc0ef
children
line wrap: on
line source

name: sw

on: [push, pull_request]

jobs:
  windows:
    runs-on: windows-latest   
    steps:
    - uses: actions/checkout@v4
    - uses: egorpugin/sw-action@master
    - run: ./sw build -static -shared -config d,r
    
  linux:
    runs-on: ubuntu-22.04
    container: fedora:latest
    steps:
    - uses: actions/checkout@v4
    - name: prepare
      run: |
        sudo dnf -y update
        sudo dnf -y install cmake which g++ clang clang-tools-extra lld
    - uses: egorpugin/sw-action@master
    - run: ./sw build -static -shared -config d,r
   
  macos:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v4
    - uses: egorpugin/sw-action@master
    - name: install
      run: |
        brew update
        brew install flex bison gcc llvm
    - name: build
      run: |      
        export PATH="/opt/homebrew/opt/bison/bin:$PATH"
        export PATH="/opt/homebrew/opt/flex/bin:$PATH"
        export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
        export PATH="/opt/homebrew/opt/gcc/bin:$PATH"
        ./sw build -static -shared -config d,r -compiler gcc-14