File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -25,26 +25,11 @@ jobs:
25
25
env :
26
26
targetName : lemon
27
27
steps :
28
- - name : cacheQt
29
- id : MacosCacheQt
30
- uses : actions/cache@v1
31
- with :
32
- path : ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
33
- key : ${{ runner.os }}-Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
34
- # - name: setupQt
35
- # if: steps.MacosCacheQt.outputs.cache-hit == 'true'
36
- # shell: bash
37
- # env:
38
- # QtPath: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
39
- # run: |
40
- # qt_Path=${env:QtPath}
41
- # echo "Qt5_DIR=\"$QtPath\"" >> $GITHUB_ENV
42
- # echo "${qt_Path}/bin" >> $GITHUB_PATH
43
28
- name : Install Qt
44
- if : steps.MacosCacheQt.outputs.cache-hit != 'true'
45
29
uses : jurplel/install-qt-action@v2
46
30
with :
47
31
version : ${{ matrix.qt_ver }}
32
+ cached : ${{ steps.MacosCacheQt.outputs.cache-hit }}
48
33
49
34
- uses : actions/checkout@v2
50
35
with :
@@ -53,16 +38,14 @@ jobs:
53
38
run : |
54
39
brew install ninja pkg-config
55
40
- name : build macos
56
- env :
57
- Qt6_DIR : ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
58
41
run : |
59
42
cmake . \
60
43
-GNinja \
61
44
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
62
45
-DLEMON_QT6=ON \
63
46
-DLEMON_BUILD_INFO="Build for macOS" \
64
47
-DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" \
65
- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
48
+ -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
66
49
cmake --build . --parallel $(sysctl -n hw.logicalcpu)
67
50
# tag 打包
68
51
- name : package
Original file line number Diff line number Diff line change 1
- 117
1
+ 118
You can’t perform that action at this time.
0 commit comments