File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
actions/universal-package Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 11
11
using : ' composite'
12
12
steps :
13
13
- name : Set up formula
14
+ id : setup-formula
14
15
shell : bash
15
16
run : |
16
17
echo '::group::Set up formula'
@@ -23,14 +24,19 @@ runs:
23
24
24
25
# Uninstall the already installed formula because we want to build our own
25
26
brew uninstall --ignore-dependencies ${formula} || true
27
+
28
+ # Extract Xcode version to serve as part of the key for caching
29
+ xcode_version=$(xcodebuild -version | tail -1 | sed -E 's/Build version (.*)/\1/')
30
+ echo "xcode_version=$xcode_version" >> $GITHUB_OUTPUT
31
+
26
32
echo '::endgroup::'
27
33
28
34
- name : Cache keg
29
35
id : cache-keg
30
36
uses : actions/cache@v3
31
37
with :
32
38
path : /usr/local/Cellar/${{ inputs.formula }}
33
- key : ${{ inputs.formula }}-homebrew-cache-patched-unified-${{ hashFiles(format('{0}.rb', inputs.formula)) }}
39
+ key : ${{ inputs.formula }}-homebrew-cache-patched-unified-xcode${{ steps.setup-formula.outputs.xcode_version }}- ${{ hashFiles(format('{0}.rb', inputs.formula)) }}
34
40
35
41
- name : Install formula
36
42
shell : bash
Original file line number Diff line number Diff line change 62
62
63
63
# Most up to date OS and Xcode. Used to publish release for the main build.
64
64
- os : macos-12
65
- xcode : ' 14.1 '
65
+ xcode : ' 14.2 '
66
66
publish : true
67
67
68
68
runs-on : ${{ matrix.os }}
82
82
# Later, we pass the --enable-sparkle_1 flag to configure to set the corresponding ifdef.
83
83
ln -fhs Sparkle_1.framework src/MacVim/Sparkle.framework
84
84
85
+ - name : Set up Xcode
86
+ if : matrix.xcode != ''
87
+ run : |
88
+ sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
89
+ xcode-select -p
90
+ xcodebuild -version
91
+
85
92
# Set up, install, and cache gettext library for localization.
86
93
#
87
94
# Instead of using the default binary installed by Homebrew, need to build our own because gettext is statically
@@ -131,12 +138,6 @@ jobs:
131
138
brew unlink perl
132
139
fi
133
140
134
- - name : Set up Xcode
135
- if : matrix.xcode != ''
136
- run : |
137
- sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
138
- xcode-select -p
139
-
140
141
# All set up steps are done. Build and test MacVim below.
141
142
142
143
- name : Configure
You can’t perform that action at this time.
0 commit comments