shogo82148 / actions-setup-perl

Setup Perl environment Action
https://github.com/marketplace/actions/setup-perl-environment
MIT License
85 stars 6 forks source link

Cygwin, etc? #507

Open mohawk2 opened 3 years ago

mohawk2 commented 3 years ago

How much effort would it take to also support Cygwin etc on this excellent "action"? Also, what is the "default" Perl on the GH-provided Windows environment?

skirmess commented 3 years ago

You can install Cygwin with the cygwin/cygwin-install-action action.

  cygwin:
    runs-on: windows-latest

    strategy:
      fail-fast: false
      matrix:
        platform: [ 'x86', 'x86_64' ]

    defaults:
      run:
        shell: bash -o igncr {0}

    steps:
      - uses: cygwin/cygwin-install-action@master
        with:
          packages: >-
            gcc-core
            gcc-g++
            git
            libcrypt-devel
            libssl-devel
            make
            perl
            wget
          platform: ${{ matrix.platform }}

      - run: perl ...
        env:
          PATH: /usr/local/bin:/usr/bin