ci: Bump actions/* to v3 in haskell-ci workflow

This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
Tomas Janousek 2022-11-27 17:17:15 +00:00
parent 0bd43c072f
commit 8cd09601b1
4 changed files with 30 additions and 6 deletions

View File

@ -0,0 +1,23 @@
Bump some GitHub Actions versions to prevent Dependabot from opening pull
requests every time we regenerate the haskell-ci workflow.
--- .github/workflows/haskell-ci.yml.orig
+++ .github/workflows/haskell-ci.yml
@@ -190,7 +190,7 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
cabal-plan --version
- name: checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
path: source
- name: autoreconf
@@ -231,7 +231,7 @@ jobs:
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
cabal-plan
- name: cache
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store

View File

@ -57,12 +57,12 @@ set in GitHub repository secrets.
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
+ - name: upload artifacts (sdist) + - name: upload artifacts (sdist)
+ if: matrix.upload + if: matrix.upload
+ uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3
+ with: + with:
+ path: ${{ github.workspace }}/sdist/*.tar.gz + path: ${{ github.workspace }}/sdist/*.tar.gz
+ - name: upload artifacts (haddock) + - name: upload artifacts (haddock)
+ if: matrix.upload + if: matrix.upload
+ uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3
+ with: + with:
+ path: ${{ github.workspace }}/haddock/*-docs.tar.gz + path: ${{ github.workspace }}/haddock/*-docs.tar.gz
+ - name: hackage upload (candidate) + - name: hackage upload (candidate)

View File

@ -170,7 +170,7 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan chmod a+x $HOME/.cabal/bin/cabal-plan
cabal-plan --version cabal-plan --version
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: source path: source
- name: initial cabal.project for sdist - name: initial cabal.project for sdist
@ -216,7 +216,7 @@ jobs:
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
cabal-plan cabal-plan
- name: cache - name: cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store path: ~/.cabal/store
@ -247,12 +247,12 @@ jobs:
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
- name: upload artifacts (sdist) - name: upload artifacts (sdist)
if: matrix.upload if: matrix.upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: ${{ github.workspace }}/sdist/*.tar.gz path: ${{ github.workspace }}/sdist/*.tar.gz
- name: upload artifacts (haddock) - name: upload artifacts (haddock)
if: matrix.upload if: matrix.upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: ${{ github.workspace }}/haddock/*-docs.tar.gz path: ${{ github.workspace }}/haddock/*-docs.tar.gz
- name: hackage upload (candidate) - name: hackage upload (candidate)

View File

@ -7,6 +7,7 @@ apt:
libxss-dev libxss-dev
github-patches: github-patches:
.github/workflows/haskell-ci-dependabot.patch
.github/workflows/haskell-ci-hackage.patch .github/workflows/haskell-ci-hackage.patch
raw-project raw-project