Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2022-05-25 13:04:07 +0300
committermatt335672 <30179339+matt335672@users.noreply.github.com>2022-05-25 13:17:30 +0300
commit8236cda6a603e9c6b05e85a1a4c2d0e5f121100f (patch)
treef3735f91c60cfce2324895af0dda9eb93df95ec4 /.github
parentd8669a2998e9bf897a73f3e3153ca97087ee668b (diff)
github actions: use canonical way to get ImageOS
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 9b004fd9..21caacac 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -132,10 +132,12 @@ jobs:
CPPCHECK_VER: 2.8
CPPCHECK_REPO: https://github.com/danmar/cppcheck.git
steps:
- # This is currently the only way to get a version into
- # the cache tag name - see https://github.com/actions/cache/issues/543
- - run: |
- echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
+ # Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
+ # see https://github.com/actions/cache/issues/543
+ - name: Get operating system name and version.
+ id: os
+ run: echo "::set-output name=image::$ImageOS"
+ shell: bash
- uses: actions/checkout@v2
- name: Cache cppcheck
uses: actions/cache@v2
@@ -143,7 +145,7 @@ jobs:
cache-name: cache-cppcheck
with:
path: ~/cppcheck.local
- key: ${{ runner.os }}-${{ env.OS_VERSION }}-build-${{ env.cache-name }}-${{ env.CPPCHECK_VER }}
+ key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}-${{ env.CPPCHECK_VER }}
- run: sudo scripts/install_cppcheck_dependencies_with_apt.sh
- run: ./bootstrap
- run: scripts/install_cppcheck.sh $CPPCHECK_REPO $CPPCHECK_VER