Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/tesseract/.github/workflows/sw.yml @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 name: sw | |
| 2 | |
| 3 on: | |
| 4 schedule: | |
| 5 # every 3rd day | |
| 6 - cron: 0 0 */3 * * | |
| 7 | |
| 8 jobs: | |
| 9 build: | |
| 10 runs-on: ${{ matrix.os }} | |
| 11 container: ${{ matrix.container }} | |
| 12 strategy: | |
| 13 fail-fast: false | |
| 14 matrix: | |
| 15 os: [windows-2022, macos-latest] | |
| 16 include: | |
| 17 - os: ubuntu-22.04 | |
| 18 container: fedora:latest | |
| 19 | |
| 20 steps: | |
| 21 - name: packages | |
| 22 if: matrix.os == 'ubuntu-22.04' | |
| 23 run: sudo dnf -y install cmake gcc lld which flex bison clang clang-tools-extra git | |
| 24 | |
| 25 - uses: actions/checkout@v4 | |
| 26 with: | |
| 27 submodules: recursive | |
| 28 - uses: egorpugin/sw-action@master | |
| 29 | |
| 30 - name: build | |
| 31 if: github.event_name != 'pull_request' && (matrix.os == 'windows-2022') | |
| 32 run: ./sw -static -shared -platform x86,x64 -config d,r build | |
| 33 - name: build-pr | |
| 34 if: github.event_name == 'pull_request' && (matrix.os == 'windows-2022') | |
| 35 run: ./sw build | |
| 36 | |
| 37 - name: build | |
| 38 if: github.event_name != 'pull_request' && (matrix.os != 'windows-2022') | |
| 39 run: ./sw -static -shared -config d,r build -Dwith-tests=1 | |
| 40 - name: build-pr | |
| 41 if: github.event_name == 'pull_request' && (matrix.os != 'windows-2022') | |
| 42 run: ./sw build -Dwith-tests=1 | |
| 43 | |
| 44 - name: download test data | |
| 45 run: git clone https://github.com/egorpugin/tessdata tessdata_unittest | |
| 46 | |
| 47 - name: copy fonts | |
| 48 if: matrix.os != 'windows-2022' | |
| 49 run: cp tessdata_unittest/fonts/* test/testing/ | |
| 50 - name: copy fonts | |
| 51 if: matrix.os == 'windows-2022' | |
| 52 run: Copy-Item -Path "tessdata_unittest\fonts\*" -Destination "test\testing" -Recurse | |
| 53 shell: pwsh | |
| 54 | |
| 55 - name: test | |
| 56 if: github.event_name != 'pull_request' && (matrix.os != 'windows-2022' && matrix.os != 'macos-latest') | |
| 57 run: ./sw -static -shared -config "d,r" test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode" | |
| 58 continue-on-error: true | |
| 59 - name: test | |
| 60 if: github.event_name == 'pull_request' && (matrix.os != 'windows-2022') | |
| 61 run: ./sw test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode" | |
| 62 continue-on-error: true | |
| 63 | |
| 64 - name: test-nightly | |
| 65 if: matrix.os != 'windows-2022' && matrix.os != 'macos-latest' && github.event.schedule=='0 0 * * *' | |
| 66 run: ./sw -static -shared -config "d,r" test -Dwith-tests=1 | |
| 67 continue-on-error: true | |
| 68 | |
| 69 # windows and macos-latest tests hang here for some reason, investigate | |
| 70 #- name: test | |
| 71 #if: matrix.os == 'windows-2022' || matrix.os == 'macos-latest' | |
| 72 #run: ./sw test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode" | |
| 73 #continue-on-error: true | |
| 74 | |
| 75 - name: Upload Unit Test Results | |
| 76 if: always() && matrix.os != 'windows-2022' | |
| 77 uses: actions/upload-artifact@v4 | |
| 78 with: | |
| 79 name: Test Results (${{ matrix.os }}) | |
| 80 path: .sw/test/results.xml | |
| 81 | |
| 82 - name: Publish Test Report | |
| 83 if: always() && matrix.os != 'windows-2022' | |
| 84 uses: mikepenz/action-junit-report@v4 | |
| 85 with: | |
| 86 check_name: test (${{ matrix.os }}) | |
| 87 report_paths: .sw/test/results.xml | |
| 88 github_token: ${{ secrets.GITHUB_TOKEN }} |
