mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add musl builds.
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/travis/before-install.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/travis/before-install.sh
									
									
									
									
										vendored
									
									
								
							@@ -9,4 +9,9 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
 | 
				
			|||||||
				pkg-config \
 | 
									pkg-config \
 | 
				
			||||||
				libutempter-dev \
 | 
									libutempter-dev \
 | 
				
			||||||
				build-essential
 | 
									build-essential
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if [ "$BUILD" = "musl" ]; then
 | 
				
			||||||
 | 
							sudo apt-get -y install musl-dev \
 | 
				
			||||||
 | 
										musl-tools
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								.github/travis/build.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/travis/build.sh
									
									
									
									
										vendored
									
									
								
							@@ -10,6 +10,14 @@ case "$BUILD" in
 | 
				
			|||||||
		sh $(dirname $0)/build-all.sh
 | 
							sh $(dirname $0)/build-all.sh
 | 
				
			||||||
		exec make
 | 
							exec make
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
						musl)
 | 
				
			||||||
 | 
							CC=musl-gcc sh $(dirname $0)/build-all.sh
 | 
				
			||||||
 | 
							exec make
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
						musl-static)
 | 
				
			||||||
 | 
							CC=musl-gcc sh $(dirname $0)/build-all.sh --enable-static
 | 
				
			||||||
 | 
							exec make
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
	*)
 | 
						*)
 | 
				
			||||||
		./configure || exit 1
 | 
							./configure || exit 1
 | 
				
			||||||
		exec make
 | 
							exec make
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										33
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								.travis.yml
									
									
									
									
									
								
							@@ -16,15 +16,32 @@ env:
 | 
				
			|||||||
  - BUILD=
 | 
					  - BUILD=
 | 
				
			||||||
  - BUILD=static
 | 
					  - BUILD=static
 | 
				
			||||||
  - BUILD=all
 | 
					  - BUILD=all
 | 
				
			||||||
 | 
					  - BUILD=musl
 | 
				
			||||||
 | 
					  - BUILD=musl-static
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  exclude:
 | 
					  exclude:
 | 
				
			||||||
 | 
					    # Static builds are broken on OS X (by Apple)
 | 
				
			||||||
    - os: osx
 | 
					    - os: osx
 | 
				
			||||||
      compiler: gcc
 | 
					      compiler: gcc
 | 
				
			||||||
      env: BUILD=static
 | 
					      env: BUILD=static
 | 
				
			||||||
    - os: osx
 | 
					    - os: osx
 | 
				
			||||||
      compiler: clang
 | 
					      compiler: clang
 | 
				
			||||||
      env: BUILD=static
 | 
					      env: BUILD=static
 | 
				
			||||||
 | 
					    # No musl on OS X
 | 
				
			||||||
 | 
					    - os: osx
 | 
				
			||||||
 | 
					      compiler: gcc
 | 
				
			||||||
 | 
					      env: BUILD=musl
 | 
				
			||||||
 | 
					    - os: osx
 | 
				
			||||||
 | 
					      compiler: clang
 | 
				
			||||||
 | 
					      env: BUILD=musl
 | 
				
			||||||
 | 
					    - os: osx
 | 
				
			||||||
 | 
					      compiler: gcc
 | 
				
			||||||
 | 
					      env: BUILD=musl-static
 | 
				
			||||||
 | 
					    - os: osx
 | 
				
			||||||
 | 
					      compiler: clang
 | 
				
			||||||
 | 
					      env: BUILD=musl-static
 | 
				
			||||||
 | 
					    # arm64 doesn't link ncurses
 | 
				
			||||||
    - os: linux
 | 
					    - os: linux
 | 
				
			||||||
      compiler: gcc
 | 
					      compiler: gcc
 | 
				
			||||||
      arch: arm64
 | 
					      arch: arm64
 | 
				
			||||||
@@ -33,6 +50,22 @@ jobs:
 | 
				
			|||||||
      compiler: clang
 | 
					      compiler: clang
 | 
				
			||||||
      arch: arm64
 | 
					      arch: arm64
 | 
				
			||||||
      env: BUILD=all
 | 
					      env: BUILD=all
 | 
				
			||||||
 | 
					    - os: linux
 | 
				
			||||||
 | 
					      compiler: gcc
 | 
				
			||||||
 | 
					      arch: arm64
 | 
				
			||||||
 | 
					      env: BUILD=musl
 | 
				
			||||||
 | 
					    - os: linux
 | 
				
			||||||
 | 
					      compiler: clang
 | 
				
			||||||
 | 
					      arch: arm64
 | 
				
			||||||
 | 
					      env: BUILD=musl
 | 
				
			||||||
 | 
					    - os: linux
 | 
				
			||||||
 | 
					      compiler: gcc
 | 
				
			||||||
 | 
					      arch: arm64
 | 
				
			||||||
 | 
					      env: BUILD=musl-static
 | 
				
			||||||
 | 
					    - os: linux
 | 
				
			||||||
 | 
					      compiler: clang
 | 
				
			||||||
 | 
					      arch: arm64
 | 
				
			||||||
 | 
					      env: BUILD=musl-static
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before_install:
 | 
					before_install:
 | 
				
			||||||
  - sh .github/travis/before-install.sh
 | 
					  - sh .github/travis/before-install.sh
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user