Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jan 4, 2024
1 parent 7abbba6 commit 4866adf
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
version="${version%-1}"
printf "version=%s" "$version" > "$GITHUB_OUTPUT"
printf "leptonica_version=%s" "$LEPTONICA_VERSION" > "$GITHUB_OUTPUT"
id: "get-version"

- name: Download Leptonica Source
Expand All @@ -48,7 +49,7 @@ jobs:
wget https://github.com/tesseract-ocr/tesseract/archive/refs/tags/${{ steps.get-version.outputs.version }}.tar.gz
- name: "Run build-macos.sh"
run: "./build-macos.sh ${{ matrix.config }} ${{ steps.get-version.outputs.version }} $LEPTONICA_VERSION"
run: "./build-macos.sh ${{ matrix.config }} ${{ steps.get-version.outputs.version }} ${{ steps.get-version.outputs.leptonica_version }}"

- uses: "actions/upload-artifact@v3"
with:
Expand Down Expand Up @@ -80,14 +81,19 @@ jobs:
fi
version="${version%-1}"
printf "version=%s" "$version" > "$GITHUB_OUTPUT"
printf "leptonica_version=%s" "$LEPTONICA_VERSION" > "$GITHUB_OUTPUT"
id: "get-version"

- uses: "actions/checkout@v4"
with:
submodules: "recursive"
- name: Download Leptonica Source
run: |
wget https://github.com/DanBloomberg/leptonica/archive/refs/tags/$LEPTONICA_VERSION.tar.gz
- name: Download Tesseract Source
run: |
wget https://github.com/tesseract-ocr/tesseract/archive/refs/tags/${{ steps.get-version.outputs.version }}.tar.gz
- name: "Run build-linux.sh"
run: "./build-linux.sh ${{ matrix.config }} ${{ steps.get-version.outputs.version }} $LEPTONICA_VERSION"
run: "./build-linux.sh ${{ matrix.config }} ${{ steps.get-version.outputs.version }} ${{ steps.get-version.outputs.leptonica_version }}"

- uses: "actions/upload-artifact@v3"
with:
Expand Down Expand Up @@ -116,14 +122,15 @@ jobs:
fi
version="${version%-1}"
printf "version=%s" "$version" > "$GITHUB_OUTPUT"
printf "leptonica_version=%s" "$LEPTONICA_VERSION" > "$GITHUB_OUTPUT"
id: "get-version"

- uses: "actions/checkout@v4"
with:
submodules: "recursive"

- name: "Run Build-Windows.ps1"
run: "./Build-Windows.ps1 -Configuration ${{ matrix.config }} -TesseractVersion ${{ steps.get-version.outputs.version }} -LeptonicaVersion $LEPTONICA_VERSION"
run: "./Build-Windows.ps1 -Configuration ${{ matrix.config }} -TesseractVersion ${{ steps.get-version.outputs.version }} -LeptonicaVersion ${{ steps.get-version.outputs.leptonica_version }}"

- uses: "actions/upload-artifact@v3"
with:
Expand Down

0 comments on commit 4866adf

Please sign in to comment.