Skip to content

Commit

Permalink
FIX: install and cache Qt lib in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
altairwei committed Mar 7, 2020
1 parent 11a8ec3 commit b4ec622
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y -qq --no-install-recommends git make cmake g++ wget
sudo apt-get install -y -qq --no-install-recommends xvfb libgl-dev fcitx fcitx-frontend-qt5
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ${{ env.QT_INSTALL_TARGET_DIR_PREFIX }}/Qt
key: QtCache-Linux
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
version: ${{ env.QT_VERSION }}
host: linux
target: desktop
Expand Down Expand Up @@ -70,7 +77,7 @@ jobs:
runs-on: windows-2016
env:
QT_INSTALL_TARGET_ARCH: msvc2017_64
QT_INSTALL_TARGET_DIR_PREFIX: "C:"
QT_INSTALL_TARGET_DIR_PREFIX: ${{ github.workspace }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
Expand All @@ -88,9 +95,16 @@ jobs:
conan remote add conan-community https://api.bintray.com/conan/conan-community/conan
conan remote add wiznoteplus https://api.bintray.com/conan/altairwei/conan
conan profile new default --detect
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ${{ env.QT_INSTALL_TARGET_DIR_PREFIX }}\Qt
key: QtCache-Windows
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
Expand All @@ -114,7 +128,7 @@ jobs:
runs-on: macos-latest
env:
QT_INSTALL_TARGET_ARCH: clang_64
QT_INSTALL_TARGET_DIR_PREFIX: "/Applications"
QT_INSTALL_TARGET_DIR_PREFIX: /Applications
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
Expand All @@ -134,9 +148,16 @@ jobs:
conan remote add conan-community https://api.bintray.com/conan/conan-community/conan
conan remote add wiznoteplus https://api.bintray.com/conan/altairwei/conan
conan profile new default --detect
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ${{ env.QT_INSTALL_TARGET_DIR_PREFIX }}/Qt
key: QtCache-MacOS
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
version: ${{ env.QT_VERSION }}
host: mac
target: desktop
Expand Down

0 comments on commit b4ec622

Please sign in to comment.