diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 98e14451d..10447d2a1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -41,6 +41,30 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} steps: + # Because GitHub broke perl installations sometime in 2022 on Windows. + - name: perl -V (before re-install) + if: runner.os == 'Windows' + run: which perl && perl -V + - name: Setup perl + if: runner.os == 'Windows' + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: "5.38" + distribution: strawberry + - name: Set git to use LF + if: runner.os == 'Windows' + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - uses: actions/checkout@v2 + if: runner.os == 'Windows' + - name: perl -V + if: runner.os == 'Windows' + run: which perl && perl -V + - name: Ensure we have a working Perl toolchain + if: runner.os == 'Windows' + run: cpanm ExtUtils::Manifest App::cpanminus Locale::Maketext::Simple + - uses: actions/checkout@v4 with: token: ${{ secrets.PAT_NGALAIKO }} # custom token here so that we can push tags later @@ -80,10 +104,6 @@ jobs: if: runner.os == 'Linux' run: sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev - - name: install CPAN dependencies - if: runner.os == 'Windows' - run: cpan Locale::Maketext::Simple - - name: Build binary shell: bash run: |