mirror of
				https://github.com/thunderbrewhq/thunderbrew
				synced 2025-10-31 00:06:05 +03:00 
			
		
		
		
	 706c8903a1
			
		
	
	
		706c8903a1
		
			
		
	
	
	
	
		
			
			* chore(build): add vendored SDL 3.0.0 library * chore(build): add vendored glew-cmake-2.2.0 library * feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl * feat(gx): add uncompleted CGxDeviceGLSDL targeting Windows and Linux * chore(build): change SDL3 linkage from shared (bad) to to static (good)
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build (C/P Actions)
 | |
| 
 | |
| on: [push, pull_request]
 | |
| 
 | |
| concurrency:
 | |
|   group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
 | |
|   cancel-in-progress: true
 | |
| 
 | |
| jobs:
 | |
|   freebsd:
 | |
|     runs-on: ubuntu-latest
 | |
|     name: FreeBSD
 | |
|     timeout-minutes: 30
 | |
|     steps:
 | |
|     - uses: actions/checkout@v3
 | |
|     - name: Build
 | |
|       uses: cross-platform-actions/action@v0.19.1
 | |
|       with:
 | |
|         operating_system: freebsd
 | |
|         version: '13.2'
 | |
|         run: |
 | |
|           sudo pkg update
 | |
|           sudo pkg install -y \
 | |
|               cmake \
 | |
|               ninja \
 | |
|               pkgconf \
 | |
|               libXcursor \
 | |
|               libXext \
 | |
|               libXinerama \
 | |
|               libXi \
 | |
|               libXfixes \
 | |
|               libXrandr \
 | |
|               libXScrnSaver \
 | |
|               libXxf86vm \
 | |
|               wayland \
 | |
|               wayland-protocols \
 | |
|               libxkbcommon \
 | |
|               mesa-libs \
 | |
|               libglvnd \
 | |
|               evdev-proto \
 | |
|               libinotify \
 | |
|               alsa-lib \
 | |
|               jackit \
 | |
|               pipewire \
 | |
|               pulseaudio \
 | |
|               sndio \
 | |
|               dbus \
 | |
|               zh-fcitx \
 | |
|               ibus \
 | |
|               libudev-devd
 | |
|           cmake -S . -B build -GNinja  \
 | |
|             -Wdeprecated -Wdev -Werror \
 | |
|             -DCMAKE_BUILD_TYPE=Release \
 | |
|             -DSDL_HIDAPI_LIBUSB=OFF \
 | |
|             -DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
 | |
|             -DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
 | |
|           cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
 | |
|           cmake --build build/ --config Release --target package
 | |
|           
 | |
|           cmake --build build/ --config Release --target clean
 | |
|           rm -rf build/dist/_CPack_Packages
 | |
|           rm -rf build/CMakeFiles
 | |
|           rm -rf build/docs          
 | |
| 
 | |
|     - uses: actions/upload-artifact@v3
 | |
|       with:
 | |
|         if-no-files-found: error
 | |
|         name: SDL-freebsd
 | |
|         path: build/dist/SDL3*
 |