Bump guava from 30.0-jre to 32.0.0-jre #9
Workflow file for this run
This file contains 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
# This workflow will build a installer with InnoSetup | |
name: Build a installer for windows | |
# Should not push to the main branch, create a pull request then merge into the main branch. | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [ closed ] | |
env: | |
COCR_VERSION: 0.0.7-beta | |
RELEASE_HASH: 007-beta | |
JDK_VERSION: 11 | |
OPENCV_VERSION: 4.2.0 | |
OPENCV_JAR: opencv-420.jar | |
JAVACPP_PLATFORM: windows-x86_64 | |
PRE_RELEASE: true | |
INNO_LANGUAGE: ChineseSimplified,ChineseTraditional | |
jobs: | |
build: | |
# Trigger this workflow only on merged. | |
if: github.event.pull_request.merged == true | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v2 | |
- name: Set up InnoSetup | |
id: set_env | |
run: | | |
$env:path=$env:path+";C:\Program Files (x86)\Inno Setup 6" | |
$dl=new-object System.Net.WebClient | |
foreach($i in ("${{ env.INNO_LANGUAGE }}" -Split ",")){$dl.DownloadFile("https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Unofficial/$i.isl","C:\Program Files (x86)\Inno Setup 6\Languages\$i.isl")} | |
- name: Set up JDK | |
id: set_jdk | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_VERSION }} | |
- name: Install OpenCv.jar | |
id: maven_install | |
run: mvn install:install-file "-Dfile=lib/${{ env.OPENCV_JAR }}" "-DgroupId=org.opencv" -DartifactId=opencv "-Dversion=${{ env.OPENCV_VERSION }}" -Dpackaging=jar -DgeneratePom=true | |
- name: Build with Maven | |
id: maven_package | |
run: mvn "-Djavacpp.platform=${{ env.JAVACPP_PLATFORM }}" package | |
- name: Build installer | |
id: inno_build | |
run: iscc /DMyAppVersion=${{ env.COCR_VERSION }} cocr_iss/cocr.iss | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.COCR_VERSION }} | |
release_name: ${{ env.COCR_VERSION }} | |
prerelease: ${{ env.PRE_RELEASE }} | |
draft: false | |
body: | | |
### [Release Notes](https://github.com/sum1re/caption_ocr_tool/blob/main/RELEASE_NOTES.md#${{ env.RELEASE_HASH }}) | |
- name: Upload Release Asset | |
id: upload_release_asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./cocr_iss/cocr_installer.exe | |
asset_name: cocr_${{ env.COCR_VERSION }}_windows_installer_x86_64.exe | |
asset_content_type: application/vnd.microsoft.portable-executable,application/zip,*/* |