mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	CI: Fix macos-based jobs
This commit is contained in:
		
							
								
								
									
										27
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							| @@ -40,6 +40,9 @@ jobs: | |||||||
|     runs-on: macos-latest |     runs-on: macos-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|  |       - uses: actions/setup-python@v5 | ||||||
|  |         with: | ||||||
|  |           python-version: '3.12'       | ||||||
|       - name: install dependencies |       - name: install dependencies | ||||||
|         run: | |         run: | | ||||||
|           brew update |           brew update | ||||||
| @@ -53,8 +56,10 @@ jobs: | |||||||
|           rm /usr/local/bin/pydoc3.1* || true |           rm /usr/local/bin/pydoc3.1* || true | ||||||
|           rm /usr/local/bin/python3.1* || true |           rm /usr/local/bin/python3.1* || true | ||||||
|           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 |           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||||||
|  |           brew link --overwrite python@3.12 | ||||||
|           brew install ninja hdf5 automake armadillo lapack libmatio \ |           brew install ninja hdf5 automake armadillo lapack libmatio \ | ||||||
|           gflags glog gnuradio log4cpp openssl pugixml protobuf python-mako |           gflags glog gnuradio log4cpp openssl pugixml protobuf | ||||||
|  |           pip3 install mako | ||||||
|       - name: configure |       - name: configure | ||||||
|         run: cd build && cmake -GNinja .. |         run: cd build && cmake -GNinja .. | ||||||
|       - name: build |       - name: build | ||||||
| @@ -68,6 +73,9 @@ jobs: | |||||||
|     runs-on: macos-latest |     runs-on: macos-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|  |       - uses: actions/setup-python@v5 | ||||||
|  |         with: | ||||||
|  |           python-version: '3.12' | ||||||
|       - name: install dependencies |       - name: install dependencies | ||||||
|         run: | |         run: | | ||||||
|           brew update |           brew update | ||||||
| @@ -81,8 +89,10 @@ jobs: | |||||||
|           rm /usr/local/bin/pydoc3.1* || true |           rm /usr/local/bin/pydoc3.1* || true | ||||||
|           rm /usr/local/bin/python3.1* || true |           rm /usr/local/bin/python3.1* || true | ||||||
|           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 |           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||||||
|  |           brew link --overwrite python@3.12 | ||||||
|           brew install ninja pkg-config hdf5 automake armadillo lapack libmatio \ |           brew install ninja pkg-config hdf5 automake armadillo lapack libmatio \ | ||||||
|           gflags glog gnuradio log4cpp openssl pugixml protobuf python-mako |           gflags glog gnuradio log4cpp openssl pugixml protobuf | ||||||
|  |           pip3 install mako           | ||||||
|       - name: configure |       - name: configure | ||||||
|         run: cd build && cmake -GXcode .. |         run: cd build && cmake -GXcode .. | ||||||
|       - name: build |       - name: build | ||||||
| @@ -115,6 +125,9 @@ jobs: | |||||||
|     runs-on: macos-latest |     runs-on: macos-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|  |       - uses: actions/setup-python@v5 | ||||||
|  |         with: | ||||||
|  |           python-version: '3.12' | ||||||
|       - name: install dependencies |       - name: install dependencies | ||||||
|         run: | |         run: | | ||||||
|           brew update |           brew update | ||||||
| @@ -128,15 +141,17 @@ jobs: | |||||||
|           rm /usr/local/bin/pydoc3.1* || true |           rm /usr/local/bin/pydoc3.1* || true | ||||||
|           rm /usr/local/bin/python3.1* || true |           rm /usr/local/bin/python3.1* || true | ||||||
|           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 |           export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||||||
|           brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio \ |           brew link --overwrite python@3.12 | ||||||
|           log4cpp openssl pugixml protobuf python-mako |           brew install ninja pkg-config hdf5 automake armadillo lapack libmatio \ | ||||||
|  |           gflags glog gnuradio log4cpp openssl pugixml protobuf llvm | ||||||
|  |           pip3 install mako     | ||||||
|           ln -s $(brew --prefix llvm)/bin/clang-tidy /usr/local/bin |           ln -s $(brew --prefix llvm)/bin/clang-tidy /usr/local/bin | ||||||
|           ln -s $(brew --prefix llvm)/bin/clang-apply-replacements /usr/local/bin |           ln -s $(brew --prefix llvm)/bin/clang-apply-replacements /usr/local/bin | ||||||
|           ln -s $(brew --prefix llvm)/bin/run-clang-tidy /usr/local/bin |           ln -s $(brew --prefix llvm)/bin/run-clang-tidy.py /usr/local/bin | ||||||
|       - name: Prepare run |       - name: Prepare run | ||||||
|         run: cd build && cmake .. && make volk_gnsssdr_module gtest-1.14.0 core_monitor core_libs pvt_libs |         run: cd build && cmake .. && make volk_gnsssdr_module gtest-1.14.0 core_monitor core_libs pvt_libs | ||||||
|       - name: run clang-tidy |       - name: run clang-tidy | ||||||
|         run: cd build && run-clang-tidy -fix |         run: cd build && /usr/local/opt/llvm/bin/run-clang-tidy -fix | ||||||
|       - name: check |       - name: check | ||||||
|         run: | |         run: | | ||||||
|           git diff > clang_tidy.patch |           git diff > clang_tidy.patch | ||||||
|   | |||||||
| @@ -872,9 +872,10 @@ Install the required dependencies: | |||||||
| ``` | ``` | ||||||
| $ brew update && brew upgrade | $ brew update && brew upgrade | ||||||
| $ brew install armadillo cmake hdf5 gflags glog gnuradio libmatio log4cpp \ | $ brew install armadillo cmake hdf5 gflags glog gnuradio libmatio log4cpp \ | ||||||
|     openssl pkg-config protobuf pugixml python-mako |     openssl pkg-config protobuf pugixml | ||||||
| $ brew install --cask mactex  # when completed, restart Terminal | $ brew install --cask mactex  # when completed, restart Terminal | ||||||
| $ brew install graphviz doxygen | $ brew install graphviz doxygen | ||||||
|  | ¢ pip3 install mako | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| For macOS versions older than Sonoma, you will also need LAPACK: | For macOS versions older than Sonoma, you will also need LAPACK: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez