Changeset 18139 in josm for trunk/.github


Ignore:
Timestamp:
2021-08-20T18:11:07+02:00 (3 years ago)
Author:
Don-vip
Message:

see #17083 - fix Windows installer package generation, smarter steps rules

File:
1 edited

Legend:

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

    r18138 r18139  
    7575        java: [8, 11, 16, 17-ea, 18-ea]
    7676        os: [ubuntu-latest, macos-latest, windows-latest]
    77         exclude:
    78           - java: 8
    79             os: macos-latest
    80           - java: 11
    81             os: macos-latest
    8277    name: Java ${{ matrix.java }} on ${{ matrix.os }}
    8378    steps:
     
    143138
    144139      - name: Build and package for macOS
    145         if: ${{ runner.os == 'macos' && always() }}
     140        if: ${{ runner.os == 'macos' && (matrix.java == '16' || matrix.java == '17-ea' || matrix.java == '18-ea' ) && always() }}
    146141        env:
    147142          CERT_MACOS_P12: ${{ secrets.CERT_MACOS_P12 }}
     
    152147
    153148      - name: Build and package for Windows
    154         if: ${{ runner.os == 'windows' && always() }}
     149        if: ${{ runner.os == 'windows' && (matrix.java == '16' || matrix.java == '17-ea' || matrix.java == '18-ea' ) && always() }}
    155150        run: |
    156151          if [ ! -f tools/${{ env.WIX_HOME }}-binaries.zip ]; then
    157152            curl -o tools/${{ env.WIX_HOME }}-binaries.zip ${{ env.WIX_URL }}
    158153          fi
    159           Expand-Archive -Path tools/${{ env.WIX_HOME }}-binaries.zip -DestinationPath ${{ env.WIX_HOME }}
     154          PowerShell -Command Expand-Archive -Path tools/${{ env.WIX_HOME }}-binaries.zip -DestinationPath ${{ env.WIX_HOME }}
    160155          echo "${{ env.WIX_HOME }}" >> $GITHUB_PATH
    161156          ./native/windows/win-jpackage.sh ${{ needs.createrelease.outputs.josm_revision }}
    162157
    163158      - name: Upload macOS app
    164         if: ${{ runner.os == 'macos' && always() }}
     159        if: ${{ runner.os == 'macos' && (matrix.java == '16' || matrix.java == '17-ea' || matrix.java == '18-ea' ) && always() }}
    165160        id: upload-app
    166161        uses: actions/upload-release-asset@v1
     
    174169
    175170      - name: Upload Windows Installer package
    176         if: ${{ runner.os == 'windows' && always() }}
     171        if: ${{ runner.os == 'windows' && (matrix.java == '16' || matrix.java == '17-ea' || matrix.java == '18-ea' ) && always() }}
    177172        id: upload-msi
    178173        uses: actions/upload-release-asset@v1
Note: See TracChangeset for help on using the changeset viewer.