feat(github_actions): Use tag to pin xcb-errors

Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
This commit is contained in:
Lucas Schwiderski 2021-05-08 18:44:39 +02:00
parent dc8108eff7
commit 1867ab057c
No known key found for this signature in database
GPG Key ID: AA12679AAA6DF4D8
1 changed files with 2 additions and 6 deletions

View File

@ -71,7 +71,6 @@ jobs:
SOURCE_DATE_EPOCH: ${{ matrix.source_date_epoch }} SOURCE_DATE_EPOCH: ${{ matrix.source_date_epoch }}
TEST_TIMEOUT: '100' TEST_TIMEOUT: '100'
CI: 'true' CI: 'true'
XCB_ERRORS_SHA: '5d660ebe872cadcdc85de9d6f9afe05de629c030'
steps: steps:
# Create a cache invalidation key based on the current year + week. # Create a cache invalidation key based on the current year + week.
@ -173,16 +172,13 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: /tmp/xcb-errors path: /tmp/xcb-errors
# xcb-errors doesn't have versioned releases, so we checkout and cache by commit. key: ${{ github.workflow }}-${{ runner.os }}-xcb-errors-1.0
# Make sure to keep this in sync with the `git checkout` below.
key: ${{ github.workflow }}-${{ runner.os }}-xcb-errors-${{ env.XCB_ERRORS_SHA }}
- name: Install fresh xcb-errors - name: Install fresh xcb-errors
if: steps.cache-xcb-errors.outputs.cache-hit != 'true' if: steps.cache-xcb-errors.outputs.cache-hit != 'true'
run: | run: |
git clone --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git /tmp/xcb-errors git clone --recursive --depth 1 --branch 1.0 https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git /tmp/xcb-errors
cd /tmp/xcb-errors cd /tmp/xcb-errors
git checkout ${{ env.XCB_ERRORS_SHA }}
./autogen.sh --prefix=/usr ./autogen.sh --prefix=/usr
make make
sudo make install sudo make install