mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-10-31 08:06:23 +01:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			add_window
			...
			add_script
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5d948be506 | |||
| 4a80999f63 | |||
| e8c98ab58e | |||
| 438d2dcaaa | |||
| cb4653ac7a | 
							
								
								
									
										8
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							| @@ -16,10 +16,7 @@ on: | ||||
| jobs: | ||||
|   base: | ||||
|     name: base | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     strategy: | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest] | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: build | ||||
| @@ -45,11 +42,10 @@ jobs: | ||||
|   image: | ||||
|     name: ${{ matrix.arch_name }} | ||||
|     needs: base | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     runs-on: ubuntu-20.04 | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest] | ||||
|         arch_name: [android-arm, android-arm64, android-x86, android-x86_64, web-wasm, linux-arm64, linux-arm64-musl, linux-armv5, linux-armv5-musl, linux-armv6, linux-armv6-musl, linux-armv7, linux-armv7a, linux-armv7l-musl, linux-x64-clang, linux-s390x, linux-x64, linux-x86, linux-mips, linux-ppc64le, manylinux1-x64, manylinux1-x86, manylinux2010-x64, manylinux2010-x86, manylinux2014-x64, manylinux2014-x86, manylinux2014-aarch64, windows-static-x64, windows-static-x64-posix, windows-static-x86, windows-shared-x64, windows-shared-x64-posix, windows-shared-x86, linux-riscv64, linux-riscv32, linux-m68k-uclibc] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|   | ||||
							
								
								
									
										6
									
								
								tools/builder/cmake.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								tools/builder/cmake.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| source $(dirname "$0")/functions/cmake_fn.sh | ||||
|  | ||||
| cmake_build $@ | ||||
							
								
								
									
										11
									
								
								tools/builder/cmake_all.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								tools/builder/cmake_all.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile | ||||
| make -f dockcross-Makefile display_images | ||||
|  | ||||
| source $(dirname "$0")/functions/cmake_fn.sh | ||||
|  | ||||
| for image in $(make -f dockcross-Makefile display_images); do | ||||
|     cmake_build $image $@ | ||||
| done | ||||
							
								
								
									
										19
									
								
								tools/builder/functions/cmake_fn.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								tools/builder/functions/cmake_fn.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| cmake_build () { | ||||
|     local image=$1 | ||||
|     local build_file=build-${image%:*} | ||||
|     shift 1 | ||||
|     local cmake_arg=$@ | ||||
|     echo "cmake arg: $cmake_arg" | ||||
|  | ||||
|     echo "Pulling dockcross/$image" | ||||
|     docker pull dockcross/$image | ||||
|     echo "Make script dockcross-$image" | ||||
|     docker run --rm dockcross/$image > ./dockcross-$image | ||||
|     chmod +x ./dockcross-$image | ||||
|     echo "Build $build_file" | ||||
|     ./dockcross-$image cmake -B$build_file -H. -GNinja $cmake_arg | ||||
|     ./dockcross-$image ninja -C$build_file | ||||
| } | ||||
							
								
								
									
										15
									
								
								tools/builder/functions/makefile_fn.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								tools/builder/functions/makefile_fn.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| makefile_build () { | ||||
|     local image=$1 | ||||
|     shift 1 | ||||
|  | ||||
|     echo "Pulling dockcross/$image" | ||||
|     docker pull dockcross/$image | ||||
|     echo "Make script dockcross-$image" | ||||
|     docker run --rm dockcross/$image > ./dockcross-$image | ||||
|     chmod +x ./dockcross-$image | ||||
|     echo "Build..." | ||||
|     ./dockcross-$image bash -c 'make CXX=$CXX CC=$CC AR=$AR AS=$AS CPP=$CPP FC=$FC' | ||||
| } | ||||
							
								
								
									
										6
									
								
								tools/builder/makefile.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								tools/builder/makefile.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| source $(dirname "$0")/functions/makefile_fn.sh | ||||
|  | ||||
| makefile_build $@ | ||||
							
								
								
									
										11
									
								
								tools/builder/makefile_all.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								tools/builder/makefile_all.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| set -euo pipefail | ||||
|  | ||||
| curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile | ||||
| make -f dockcross-Makefile display_images | ||||
|  | ||||
| source $(dirname "$0")/functions/makefile_fn.sh | ||||
|  | ||||
| for image in $(make -f dockcross-Makefile display_images); do | ||||
|     makefile_build $image $@ | ||||
| done | ||||
		Reference in New Issue
	
	Block a user