@@ -12,22 +12,22 @@ jobs:
1212 build :
1313 strategy :
1414 matrix :
15- java : [8, 11]
15+ java : [11]
1616 os : [ubuntu-latest, windows-latest, macos-latest]
1717 runs-on : ${{ matrix.os }}
1818 env :
1919 gradle_version : 6.8.3 # use ``current`` to install the current stable release
2020 gradle_commands : build # default is build
2121 steps :
22- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
2323 - name : Set up JDK ${{ matrix.java }}
24- uses : actions/setup-java@v3
24+ uses : actions/setup-java@v4
2525 with :
2626 java-version : ${{ matrix.java }}
2727 distribution : ' zulu'
2828 cache : ' gradle'
2929 java-package : ' jdk+fx'
30- - uses : gradle/gradle-build-action@v2
30+ - uses : gradle/actions/setup-gradle@v3
3131 with :
3232 gradle-version : ${{ env.gradle_version }}
3333 - name : Run commands
@@ -37,33 +37,33 @@ jobs:
3737 shell : bash
3838 run : echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH
3939 - name : Re-install innosetup
40- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
40+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
4141 shell : cmd
4242 run : |
4343 choco uninstall innosetup
4444 choco install innosetup --version=5.6.1
4545 - name : Build insight exe
46- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
46+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
4747 shell : cmd
4848 run : |
4949 gradle packageApplicationExe
5050 - name : Build importer exe
51- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
51+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
5252 shell : cmd
5353 run : |
5454 gradle packageImporterApplicationExe
5555 - name : Build insight msi
56- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
56+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
5757 shell : cmd
5858 run : |
5959 gradle packageApplicationMsi
6060 - name : Build importer msi
61- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
61+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
6262 shell : cmd
6363 run : |
6464 gradle packageImporterApplicationMsi
6565 - name : Check MSI
66- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
66+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
6767 run : |
6868 msi=(`find build/packaged/installImporterDist/bundles -maxdepth 1 -name "*.msi"`)
6969 if [ ${#msi[@]} == 0 ]; then
@@ -75,29 +75,29 @@ jobs:
7575 fi
7676 shell : bash
7777 - name : Upload zip and jar
78- if : startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
78+ if : startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
7979 uses : actions/upload-artifact@v4
8080 with :
8181 name : artifacts-${{ matrix.os }}-OMERO
8282 path : build/distributions/OMERO*
8383 if-no-files-found : error
8484 - name : Upload jar
85- if : startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
86- uses : actions/upload-artifact@v3
85+ if : startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
86+ uses : actions/upload-artifact@v4
8787 with :
8888 name : artifacts-${{ matrix.os }}-omero_
8989 path : build/libs/omero_*
9090 if-no-files-found : error
9191 - name : Upload insight artifacts
92- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
93- uses : actions/upload-artifact@v3
92+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
93+ uses : actions/upload-artifact@v4
9494 with :
9595 name : artifacts-${{ matrix.os }}-insight
9696 path : build/packaged/main/bundles/*
9797 if-no-files-found : error
9898 - name : Upload importer artifacts
99- if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8 ')
100- uses : actions/upload-artifact@v3
99+ if : startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '11 ')
100+ uses : actions/upload-artifact@v4
101101 with :
102102 name : artifacts-${{ matrix.os }}-importer
103103 path : build/packaged/installImporterDist/bundles/*
@@ -108,7 +108,7 @@ jobs:
108108 runs-on : ubuntu-latest
109109 steps :
110110 - name : Download artifacts from build
111- uses : actions/download-artifact@v3
111+ uses : actions/download-artifact@v4
112112 - name : List artifacts
113113 run : ls -R
114114 - name : Upload binaries to release
0 commit comments