|
62 | 62 | - name: Install Homebrew packages
|
63 | 63 | run: brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
|
64 | 64 |
|
65 |
| - - name: Set Ccache directory |
66 |
| - run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV" |
| 65 | + - name: Set environment variables |
| 66 | + run: | |
| 67 | + echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV" |
| 68 | + echo "IN_GETOPT_BIN=$(brew --prefix gnu-getopt)/bin/getopt" >> "$GITHUB_ENV" |
67 | 69 |
|
68 | 70 | - name: Restore Ccache cache
|
69 | 71 | uses: actions/cache/restore@v4
|
@@ -105,37 +107,6 @@ jobs:
|
105 | 107 | - name: Checkout
|
106 | 108 | uses: actions/checkout@v3
|
107 | 109 |
|
108 |
| - - name: Fix Visual Studio installation |
109 |
| - # See: https://github.com/actions/runner-images/issues/7832#issuecomment-1617585694. |
110 |
| - run: | |
111 |
| - Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" |
112 |
| - $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" |
113 |
| - $componentsToRemove= @( |
114 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM" |
115 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM.Spectre" |
116 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64" |
117 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64.Spectre" |
118 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64" |
119 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64.Spectre" |
120 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL" |
121 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.Spectre" |
122 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM" |
123 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM.Spectre" |
124 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64" |
125 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64.Spectre" |
126 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC" |
127 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.Spectre" |
128 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM" |
129 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM.Spectre" |
130 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64" |
131 |
| - "Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64.Spectre" |
132 |
| - ) |
133 |
| - [string]$workloadArgs = $componentsToRemove | ForEach-Object {" --remove " + $_} |
134 |
| - $Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache') |
135 |
| - # should be run twice |
136 |
| - $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden |
137 |
| - $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden |
138 |
| -
|
139 | 110 | - name: Configure Developer Command Prompt for Microsoft Visual C++
|
140 | 111 | # Using microsoft/setup-msbuild is not enough.
|
141 | 112 | uses: ilammy/msvc-dev-cmd@v1
|
@@ -266,9 +237,6 @@ jobs:
|
266 | 237 | - name: Run unit tests
|
267 | 238 | run: src\test_bitcoin.exe -l test_suite
|
268 | 239 |
|
269 |
| - - name: Run benchmarks |
270 |
| - run: src\bench_bitcoin.exe -sanity-check |
271 |
| - |
272 | 240 | - name: Run util tests
|
273 | 241 | run: py -3 test\util\test_runner.py
|
274 | 242 |
|
|
0 commit comments