Changeset 17694 in josm for trunk/.github/workflows
- Timestamp:
- 2021-03-30T15:42:04+02:00 (4 years ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/ant.yml
r17691 r17694 1 name: Java CI 1 name: Java CI Build 2 2 env: 3 3 junit_platform_version: '1.7.0' … … 6 6 on: 7 7 push: 8 branches: [master]9 pull_request:10 8 branches: [master] 11 9 … … 93 91 ~/.ivy2/cache/ 94 92 ~/work/josm/josm/tools/ 95 build-tools-cache/96 93 key: ${{ runner.os }}-ivy2-${{ hashFiles('ivy.xml') }} 97 94 98 - name: Setup java95 - name: Setup Java ${{ matrix.java }} 99 96 uses: actions/setup-java@v1.4.3 100 97 with: 101 98 java-version: ${{ matrix.java }} 102 99 103 - name: Install ant ${{ env.ANT_HOME}} and junit ${{ env.junit_platform_version}}100 - name: Install Ant ${{ env.ANT_HOME }} 104 101 run: | 105 mkdir -p build-tools-cache/ 106 cd build-tools-cache/ 107 if [ ! -f ${{ env.ANT_HOME }}-bin.tar.gz ]; then 108 curl -o ${{ env.ANT_HOME }}-bin.tar.gz https://downloads.apache.org/ant/binaries/${{ env.ANT_HOME }}-bin.tar.gz 102 if [ ! -f tools/${{ env.ANT_HOME }}-bin.tar.gz ]; then 103 curl -o tools/${{ env.ANT_HOME }}-bin.tar.gz https://downloads.apache.org/ant/binaries/${{ env.ANT_HOME }}-bin.tar.gz 109 104 fi 110 if [ ! -f junit-platform-console-standalone-${{ env.junit_platform_version }}.jar ]; then 111 curl -o junit-platform-console-standalone-${{ env.junit_platform_version }}.jar https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/${{ env.junit_platform_version }}/junit-platform-console-standalone-${{ env.junit_platform_version }}.jar 112 fi 113 cd .. 114 tar zxf build-tools-cache/${{ env.ANT_HOME }}-bin.tar.gz 115 cp build-tools-cache/junit-platform-console-standalone-${{ env.junit_platform_version }}.jar ${{ env.ANT_HOME }}/lib/junit-platform-console-standalone-${{ env.junit_platform_version }}.jar 105 tar zxf tools/${{ env.ANT_HOME }}-bin.tar.gz 116 106 117 - name: Print ant version, expecting ${{ env.ANT_HOME }}118 run: ${{ env.ANT_HOME }}/bin/ant - version107 - name: Ant diagnostics 108 run: ${{ env.ANT_HOME }}/bin/ant -diagnostics 119 109 120 110 - name: Optimise images … … 149 139 asset_content_type: application/java-archive 150 140 151 - name: Test with Ant152 if: ${{ needs.createrelease.outputs.josm_prerelease }}153 run: |154 ANT="${{ env.ANT_HOME }}/bin/ant -DnoJavaFX=true test-unit-hardfail"155 $ANT -Dtest.headless=true156 157 - name: Dump errors if failed158 if: ${{ failure() }}159 run: "grep -L ', Failures: 0, Skipped: ' test/report/*.txt | xargs cat"160 161 - name: Upload Ant reports162 if: ${{ always() }}163 uses: actions/upload-artifact@v2164 with:165 name: Ant reports for JOSM ${{ needs.createrelease.outputs.josm_revision }} on java ${{ matrix.java }} on ${{ matrix.os }}166 path: test/report/*.txt167 168 - name: Publish Test Report with junit-report-annotations-action169 uses: ashley-taylor/junit-report-annotations-action@1.3170 if: always()171 with:172 access-token: ${{ secrets.GITHUB_TOKEN }}173 path: 'test/report/TEST*.xml'174 175 - name: Publish Test Report with action-junit-report176 if: always()177 uses: mikepenz/action-junit-report@v1178 with:179 report_paths: 'test/report/TEST*.xml'180 github_token: ${{ secrets.GITHUB_TOKEN }}181 182 141 - name: Build and package for macOS 183 142 if: ${{ runner.os == 'macos' && always() }} … … 189 148 ./native/macosx/macos-jpackage.sh ${{ needs.createrelease.outputs.josm_revision }} 190 149 191 - name: Upload app 150 - name: Upload macOS app 192 151 if: ${{ runner.os == 'macos' && always() }} 193 152 id: upload-app
Note:
See TracChangeset
for help on using the changeset viewer.