Changeset 17690 in josm


Ignore:
Timestamp:
2021-03-30T10:27:14+02:00 (4 years ago)
Author:
simon04
Message:

see #20621 - GitHub Actions: formatting for readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/ant.yml

    r17566 r17690  
    1515
    1616jobs:
     17
    1718  createrelease:
    1819    name: Create Release
     
    2021    env:
    2122      LANG: en_US.UTF-8
    22     outputs: 
     23    outputs:
    2324      upload_url: ${{ steps.create_release.outputs.upload_url }}
    2425      josm_revision: ${{ steps.create_revision.outputs.josm_revision }}
     
    3031        with:
    3132          fetch-depth: 256
     33
    3234      - name: Set revision env variable
    3335        id: create_revision
     
    4850          echo "josm_release_tag=$josm_release_tag" >> $GITHUB_ENV
    4951          echo "::set-output name=josm_release_tag::$josm_release_tag"
     52
    5053      - name: Create release
    5154        id: create_release
     
    6063          draft: false
    6164          prerelease: ${{ env.josm_prerelease }}
     65
    6266  build:
    6367    needs: createrelease
     
    8791        with:
    8892          fetch-depth: 256
     93
    8994      - name: Cache
    9095        uses: actions/cache@v2.0.0
    9196        with:
    92           path:  |
     97          path: |
    9398            ~/.ivy2/cache/
    9499            ~/work/josm/josm/tools/
    95100            build-tools-cache/
    96101          key: ${{ runner.os }}-ivy2-${{ hashFiles('ivy.xml') }}
     102
    97103      - name: Setup java
    98104        uses: actions/setup-java@v1.4.3
    99105        with:
    100106          java-version: ${{ matrix.java }}
     107
    101108      - name: Install ant ${{ env.ANT_HOME }} and junit ${{ env.junit_platform_version }}
    102109        run: |
     
    112119          tar zxf build-tools-cache/${{ env.ANT_HOME }}-bin.tar.gz
    113120          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
    114122      - name: Print ant version, expecting ${{ env.ANT_HOME }}
    115123        run: ${{ env.ANT_HOME }}/bin/ant -version
     124
    116125      - name: Optimise images
    117126        if: ${{ runner.os == 'macos' && always() }}
     
    122131          defaults write net.pornel.ImageOptim PngOutEnabled 1
    123132          /Applications/ImageOptim.app/Contents/MacOS/ImageOptim resources/images
     133
    124134      - name: Build with Ant
    125135        # Calls ant with -Dreleasebuild=true if we're a 'tested' build
     
    131141          fi
    132142          $ANT dist
     143
    133144      - name: Upload jar
    134145        # Only run on matrix.headless to avoid double jars. They should be the same jars.
     
    143154          asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}-${{ needs.createrelease.outputs.josm_revision }}.jar
    144155          asset_content_type: application/java-archive
     156
    145157      - name: Test with Ant, headless ${{ matrix.headless }}
    146158        if: ${{ needs.createrelease.outputs.josm_prerelease }}
     
    152164            xvfb-run $ANT -Dtest.headless=false
    153165          fi
     166
    154167      - name: Dump errors if failed
    155168        if: ${{ failure() }}
    156169        run: "grep -L ', Failures: 0, Skipped: ' test/report/*.txt | xargs cat"
     170
    157171      - name: Upload Ant reports
    158172        if: ${{ always() }}
     
    161175          name: Ant reports for JOSM ${{ needs.createrelease.outputs.josm_revision }} on java ${{ matrix.java }} on ${{ matrix.os }} with headless=${{ matrix.headless }}
    162176          path: test/report/*.txt
     177
    163178      - name: Publish Test Report with junit-report-annotations-action
    164179        uses: ashley-taylor/junit-report-annotations-action@1.3
     
    167182          access-token: ${{ secrets.GITHUB_TOKEN }}
    168183          path: 'test/report/TEST*.xml'
     184
    169185      - name: Publish Test Report with action-junit-report
    170186        if: always()
     
    173189          report_paths: 'test/report/TEST*.xml'
    174190          github_token: ${{ secrets.GITHUB_TOKEN }}
     191
    175192      - name: Build and package for macOS
    176193        if: ${{ runner.os == 'macos' && always() }}
     
    181198        run: |
    182199          ./native/macosx/macos-jpackage.sh ${{ needs.createrelease.outputs.josm_revision }}
     200
    183201      - name: Upload app
    184202        if: ${{ runner.os == 'macos' && always() }}
Note: See TracChangeset for help on using the changeset viewer.