Build opusfile libs for macOS snapshots
This is a temporary measure until our buildsystem will be capable of correctly picking static libraries directly from the OS.
This commit is contained in:
		
							parent
							
								
									3c44ad29b8
								
							
						
					
					
						commit
						b98cd0f612
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -39,6 +39,11 @@ jobs: | |||
|         run:  brew install librsvg $(./scripts/list-build-dependencies.sh -m brew -c clang) | ||||
|       - name: Log environment | ||||
|         run:  ./scripts/log-env.sh | ||||
|       - name: Build Opus libraries | ||||
|         run: | | ||||
|           set -x | ||||
|           cd contrib/static-opus | ||||
|           gmake -j "$(sysctl -n hw.physicalcpu)" | ||||
|       - name: Inject version string | ||||
|         run: | | ||||
|           set -x | ||||
|  | @ -48,13 +53,14 @@ jobs: | |||
|       - name: Build | ||||
|         env: | ||||
|           FLAGS: -O3 -DNDEBUG -pipe | ||||
|           OPUSFILE_CFLAGS: -I${{ github.workspace }}/contrib/static-opus/include -I${{ github.workspace }}/contrib/static-opus/include/opus | ||||
|           OPUSFILE_LIBS: ${{ github.workspace }}/contrib/static-opus/lib/libopusfile.a ${{ github.workspace }}/contrib/static-opus/lib/libogg.a ${{ github.workspace }}/contrib/static-opus/lib/libopus.a -lm | ||||
|         run: | | ||||
|           set -x | ||||
|           ./autogen.sh | ||||
|           # FIXME temporarily disable everything aside SDL2 due to linking issues | ||||
|           ./configure \ | ||||
|             --enable-sdl-static \ | ||||
|             --disable-opus-cdda \ | ||||
|             --disable-screenshots \ | ||||
|             --disable-network \ | ||||
|             CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue