mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
Merge pull request #3271 from gitbutlerapp/fix-perl-on-windows-builds
replace Perl installation with strawberry on windows
This commit is contained in:
commit
e93cac8298
28
.github/workflows/publish.yaml
vendored
28
.github/workflows/publish.yaml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user