diff options
author | Oneric <oneric@oneric.stub> | 2022-11-11 22:08:05 +0100 |
---|---|---|
committer | Oneric <oneric@oneric.stub> | 2022-11-12 00:51:29 +0100 |
commit | 3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd (patch) | |
tree | 23d24857e1dac8295b2e50fe8d93f82eccca4c6e | |
parent | d4a7ebb02fc7bfc3e1ce00e72bfa0cf1585f176f (diff) | |
download | libass-3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd.tar.bz2 libass-3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd.tar.xz |
ci/gha: replace deprecated set-output
GitHub changed how step otputs are to be set, see
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
For our docker containers we need to forward the GITHUB_OUTPUT
environment var. The same applies to some other currently unused
env vars. To reduce copy-paste create a proxy-shell script.
-rw-r--r-- | .github/workflows/ghci.yml | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/.github/workflows/ghci.yml b/.github/workflows/ghci.yml index e1a8494..b5b8d14 100644 --- a/.github/workflows/ghci.yml +++ b/.github/workflows/ghci.yml @@ -30,14 +30,14 @@ jobs: - os: ubuntu-latest cc: gcc docker_image: alpine:latest - shell: '/usr/bin/docker exec dockerciimage sh -e {0}' + shell: '/tmp/docker_shell {0}' art_reg_skip: 'font_nonunicode' # Add docker-build with minimum version of dependencies - os: ubuntu-latest cc: gcc docker_image: oldlibs docker_pullprefix: 'ghcr.io/theoneric/libass-containers/' - shell: '/usr/bin/docker exec dockerciimage sh -e {0}' + shell: '/tmp/docker_shell {0}' # Crash Tests detect (false?) leaks in Fontconfig, and # various regression test fail, assumed due to older deps skip_tests: yes @@ -88,6 +88,21 @@ jobs: "-f" "/dev/null" docker start dockerciimage + # Create a proxy-shell for Docker containers + # Scripts for each step and the output file are inside the mounted + # directories, but some environment variable must be forwarded. + echo '#!/bin/sh + set -eu + if [ "$#" -ne 1 ] ; then + echo "Usage: $0 <script file>" + exit 1 + fi + exec /usr/bin/docker exec \ + --env GITHUB_OUTPUT --env GITHUB_ENV --env GITHUB_PATH --env GITHUB_STATE \ + dockerciimage sh -e "$1" + ' > /tmp/docker_shell + chmod a+x /tmp/docker_shell + - name: Setup MSys2 uses: msys2/setup-msys2@v2 if: matrix.msystem @@ -170,7 +185,7 @@ jobs: echo "SANFLAGS=$flags" - echo "::set-output name=flags::${flags}" + echo "flags=${flags}" >> $GITHUB_OUTPUT - name: Customize compiler if: matrix.api == 'app' && matrix.cc == 'gcc' |