summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml32
1 files changed, 29 insertions, 3 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index f0b0c89..4222266 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -145,6 +145,25 @@ jobs:
cd "git-${git_version}"
make prefix=/usr -j4 install
+ - name: Install gcc-8 (only 18.04)
+ if: matrix.os == 'ubuntu:18.04'
+ # Compiler bug workaround: install and use gcc-8
+ shell: 'bash'
+ run: |
+ apt install -y \
+ gcc-8 \
+ g++-8 \
+ #
+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
+ update-alternatives --set g++ /usr/bin/g++-8
+ update-alternatives --set gcc /usr/bin/gcc-8
+
+ - name: Set git safe dir
+ run: |
+ export GIT_CEILING_DIRECTORIES=/__w # only work before git v2.35.2
+ git config --global --add safe.directory /__w/libjxl/libjxl
+
- name: Checkout the source
uses: actions/checkout@v2
with:
@@ -192,6 +211,13 @@ jobs:
# Remove libgmock-dev dependency in Ubuntu 18.04. It doesn't exist there.
sed '/libgmock-dev,/d' -i debian/control
+ - name: Install gmock-dev (debian:sid)
+ # gtest-dev cmake depends on gmock-dev, but it is not installed by the
+ # package.
+ if: matrix.os == 'debian:sid'
+ run: |
+ apt install -y libgmock-dev
+
- name: Remove libjxl-gimp-plugin package (only 18.04)
if: matrix.os == 'ubuntu:18.04'
run: |
@@ -238,7 +264,7 @@ jobs:
windows_build:
name: Windows Build (vcpkg / ${{ matrix.triplet }})
- runs-on: [windows-latest]
+ runs-on: [windows-2019]
strategy:
fail-fast: false
matrix:
@@ -249,7 +275,7 @@ jobs:
arch: '-A x64'
env:
- VCPKG_VERSION: '2021.05.12'
+ VCPKG_VERSION: '2022.06.16.1'
VCPKG_ROOT: vcpkg
VCPKG_DISABLE_METRICS: 1
@@ -264,7 +290,7 @@ jobs:
id: cache-vcpkg
with:
path: vcpkg
- key: ${{ runner.os }}-vcpkg-${{ env.VCPKG_VERSION }}-${{ matrix.triplet }}
+ key: release-${{ runner.os }}-vcpkg-${{ env.VCPKG_VERSION }}-${{ matrix.triplet }}
- name: Download vcpkg
if: steps.cache-vcpkg.outputs.cache-hit != 'true'