Skip to content

Commit

Permalink
replace Perl installation with strawberry on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Mar 21, 2024
1 parent 1bd2dfd commit 9070873
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 9070873

Please sign in to comment.