From 5a3c08e27fd848be2850b5159ca819b3bf9270a7 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 17 Nov 2020 15:18:12 +0100 Subject: [PATCH] github: fix actions. The command add-path within the changed actions has been deprecated according to https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Use shogo82148/actions-setup-perl for strawberryperl on windows. Upgrade setup-ruby to 1.1.2 on macos. --- .github/workflows/macos.yml | 2 +- .github/workflows/windows.yml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index fb3e602443..f5ec3450d2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,7 +20,7 @@ jobs: - name: Install biplist run: pip install biplist - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1.1.1 + uses: actions/setup-ruby@v1.1.2 with: ruby-version: '2.6' - name: Install deps diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 54062c8c4a..ec0cf460a5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,13 +14,14 @@ jobs: - name: Install winflexbison3 run: cinst -y --force winflexbison3 --version 2.5.18.20190508 - name: Install strawberryperl - run: | - choco install strawberryperl - echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: '5.30' + distribution: strawberry - name: Install Qt uses: jurplel/install-qt-action@v2 - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.0.0 + uses: microsoft/setup-msbuild@v1.0.2 with: vs-version: 16.4 - name: Set MSVC command prompt