Changeset 17690 in josm
- Timestamp:
- 2021-03-30T10:27:14+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/ant.yml
r17566 r17690 15 15 16 16 jobs: 17 17 18 createrelease: 18 19 name: Create Release … … 20 21 env: 21 22 LANG: en_US.UTF-8 22 outputs: 23 outputs: 23 24 upload_url: ${{ steps.create_release.outputs.upload_url }} 24 25 josm_revision: ${{ steps.create_revision.outputs.josm_revision }} … … 30 31 with: 31 32 fetch-depth: 256 33 32 34 - name: Set revision env variable 33 35 id: create_revision … … 48 50 echo "josm_release_tag=$josm_release_tag" >> $GITHUB_ENV 49 51 echo "::set-output name=josm_release_tag::$josm_release_tag" 52 50 53 - name: Create release 51 54 id: create_release … … 60 63 draft: false 61 64 prerelease: ${{ env.josm_prerelease }} 65 62 66 build: 63 67 needs: createrelease … … 87 91 with: 88 92 fetch-depth: 256 93 89 94 - name: Cache 90 95 uses: actions/cache@v2.0.0 91 96 with: 92 path: 97 path: | 93 98 ~/.ivy2/cache/ 94 99 ~/work/josm/josm/tools/ 95 100 build-tools-cache/ 96 101 key: ${{ runner.os }}-ivy2-${{ hashFiles('ivy.xml') }} 102 97 103 - name: Setup java 98 104 uses: actions/setup-java@v1.4.3 99 105 with: 100 106 java-version: ${{ matrix.java }} 107 101 108 - name: Install ant ${{ env.ANT_HOME }} and junit ${{ env.junit_platform_version }} 102 109 run: | … … 112 119 tar zxf build-tools-cache/${{ env.ANT_HOME }}-bin.tar.gz 113 120 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 121 114 122 - name: Print ant version, expecting ${{ env.ANT_HOME }} 115 123 run: ${{ env.ANT_HOME }}/bin/ant -version 124 116 125 - name: Optimise images 117 126 if: ${{ runner.os == 'macos' && always() }} … … 122 131 defaults write net.pornel.ImageOptim PngOutEnabled 1 123 132 /Applications/ImageOptim.app/Contents/MacOS/ImageOptim resources/images 133 124 134 - name: Build with Ant 125 135 # Calls ant with -Dreleasebuild=true if we're a 'tested' build … … 131 141 fi 132 142 $ANT dist 143 133 144 - name: Upload jar 134 145 # Only run on matrix.headless to avoid double jars. They should be the same jars. … … 143 154 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}-${{ needs.createrelease.outputs.josm_revision }}.jar 144 155 asset_content_type: application/java-archive 156 145 157 - name: Test with Ant, headless ${{ matrix.headless }} 146 158 if: ${{ needs.createrelease.outputs.josm_prerelease }} … … 152 164 xvfb-run $ANT -Dtest.headless=false 153 165 fi 166 154 167 - name: Dump errors if failed 155 168 if: ${{ failure() }} 156 169 run: "grep -L ', Failures: 0, Skipped: ' test/report/*.txt | xargs cat" 170 157 171 - name: Upload Ant reports 158 172 if: ${{ always() }} … … 161 175 name: Ant reports for JOSM ${{ needs.createrelease.outputs.josm_revision }} on java ${{ matrix.java }} on ${{ matrix.os }} with headless=${{ matrix.headless }} 162 176 path: test/report/*.txt 177 163 178 - name: Publish Test Report with junit-report-annotations-action 164 179 uses: ashley-taylor/junit-report-annotations-action@1.3 … … 167 182 access-token: ${{ secrets.GITHUB_TOKEN }} 168 183 path: 'test/report/TEST*.xml' 184 169 185 - name: Publish Test Report with action-junit-report 170 186 if: always() … … 173 189 report_paths: 'test/report/TEST*.xml' 174 190 github_token: ${{ secrets.GITHUB_TOKEN }} 191 175 192 - name: Build and package for macOS 176 193 if: ${{ runner.os == 'macos' && always() }} … … 181 198 run: | 182 199 ./native/macosx/macos-jpackage.sh ${{ needs.createrelease.outputs.josm_revision }} 200 183 201 - name: Upload app 184 202 if: ${{ runner.os == 'macos' && always() }}
Note:
See TracChangeset
for help on using the changeset viewer.