forked from Green-Sky/tomato
		
	f1df709b87 feat: add ngc events 1b6c907235 refactor: Make event dispatch ordered by receive time. b7f9367f6f test: Upgrade cppcheck, fix some warnings. 766e62bc89 chore: Use `pkg_search_module` directly in cmake. 00ff078f91 cleanup: Use target_link_libraries directly in cmake. c58928cc89 chore: Add `IMPORTED_TARGET` to pkg-config packages. 895a6af122 cleanup: Remove NaCl support. 41dfb1c1c0 fix: unpack enum function names in event impl generator 447666d1a1 chore: Disable targets for cross-compilation. 572924e924 chore: Build a docker image with coverage info in it. 415cb78f5e cleanup: Some portability/warning fixes for Windows builds. 425216d9ec fix: Correct a use-after-free and fix some memory leaks. 4b1cfa3e08 refactor: Change all enum-like `#define` sequences into enums. d3c2704fa9 chore: Fix make_single_file to support core-only. 0ce46b644e refactor: Change the `TCP_PACKET_*` defines into an enum. 22cd38ad50 adopt event impl generation tool to #2392 f31ea1088a add the event impl generation tool 4e603bb613 refactor: Use `enum-from-int` rule from tokstyle. 19d8f180d6 chore: Update github actions `uses`. 6a895be0c7 test: Make esp32 build actually try to instantiate tox. 65d09c9bfb cleanup: Remove test net support. REVERT: e29e185c03 feat: add ngc events git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: f1df709b8792da4c0e946d826b11df77d565064d
		
			
				
	
	
		
			169 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			169 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: ci
 | |
| 
 | |
| on:
 | |
|   pull_request:
 | |
|     branches: [master]
 | |
| 
 | |
| # Cancel old PR builds when pushing new commits.
 | |
| concurrency:
 | |
|   group: build-${{ github.event.pull_request.number || github.ref }}
 | |
|   cancel-in-progress: true
 | |
| 
 | |
| jobs:
 | |
|   common:
 | |
|     uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master
 | |
| 
 | |
|   cppcheck:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/cppcheck/Dockerfile
 | |
| 
 | |
|   mypy:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Set up Python 3.9
 | |
|         uses: actions/setup-python@v1
 | |
|         with:
 | |
|           python-version: 3.9
 | |
|       - name: Install mypy
 | |
|         run: pip install mypy
 | |
|       - name: Run mypy
 | |
|         run: |
 | |
|           (find . -name "*.py" -and -not -name "conanfile.py"; grep -lR '^#!.*python') \
 | |
|               | xargs -n1 -P8 mypy --strict
 | |
| 
 | |
|   doxygen:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/doxygen/Dockerfile
 | |
| 
 | |
|   tokstyle:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/tokstyle/Dockerfile
 | |
| 
 | |
|   misra:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/misra/Dockerfile
 | |
| 
 | |
|   build-autotools:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/autotools/Dockerfile
 | |
| 
 | |
|   build-tcc:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/tcc/Dockerfile
 | |
| 
 | |
|   build-compcert:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|       - name: Docker Build
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           file: other/docker/compcert/Dockerfile
 | |
| 
 | |
|   generate-events:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Run generate_event_c
 | |
|         run: |
 | |
|           other/event_tooling/run
 | |
|           git diff --exit-code
 | |
| 
 | |
|   cimplefmt:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Run cimplefmt
 | |
|         run: other/docker/cimplefmt/run -u $(find tox* -name "*.[ch]")
 | |
| 
 | |
|   build-win32:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Cross compilation
 | |
|         run: .github/scripts/cmake-win32 script
 | |
| 
 | |
|   build-win64:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Cross compilation
 | |
|         run: .github/scripts/cmake-win64 script
 | |
| 
 | |
|   build-macos:
 | |
|     runs-on: macos-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Build and test
 | |
|         run: .github/scripts/cmake-osx
 | |
| 
 | |
|   coverage-linux:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - name: Build, test, and upload coverage
 | |
|         run: other/docker/coverage/run
 | |
| 
 | |
|   build-android:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v4
 | |
|         with:
 | |
|           submodules: recursive
 | |
|       - run: .github/scripts/cmake-android armeabi-v7a
 | |
|       - run: .github/scripts/cmake-android arm64-v8a
 | |
|       - run: .github/scripts/cmake-android x86
 | |
|       - run: .github/scripts/cmake-android x86_64
 |