From a044f1eb620e734459b4002249bbb16b0bf2f1c9 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Fri, 27 Jan 2023 10:37:00 +0800 Subject: [PATCH] update runner images --- .github/workflows/build.yml | 7 +++++-- CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 983f926..7b26a2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: linux: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 with: @@ -22,6 +22,9 @@ jobs: libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \ mesa-common-dev libgtk-3-dev libfreetype-dev libmpv-dev - name: Build ImPlay + env: + CC: gcc-10 + CXX: g++-10 run: | mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX:PATH=/usr .. @@ -64,7 +67,7 @@ jobs: name: ImPlay-macOS path: build/ImPlay-*.dmg win: - runs-on: windows-2022 + runs-on: windows-2019 steps: - uses: actions/checkout@v3 with: diff --git a/CMakeLists.txt b/CMakeLists.txt index 182ac9d..956d22e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ if(WIN32 AND USE_MPV_WIN_BUILD) set(MPV_LIBRARY_DIRS ${MPV_DEV_DIR}) set(MPV_LIBRARIES mpv) else() - pkg_search_module(MPV REQUIRED mpv) + pkg_search_module(MPV REQUIRED mpv>=0.29.0) endif() if(USE_PATCHED_GLFW)