diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7f29399 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,95 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + release: + types: [published] + +env: + PROJECT_TYPE: KEXT + +jobs: + build: + name: Build + runs-on: macos-latest + env: + JOB_TYPE: BUILD + steps: + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: acidanthera/MacKernelSDK + path: MacKernelSDK + - name: CI Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 + - name: Lilu Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 + + - run: xcodebuild -jobs 1 -configuration Debug + - run: xcodebuild -jobs 1 -configuration Release + + - name: Upload to Artifacts + uses: actions/upload-artifact@v2 + with: + name: Artifacts + path: build/*/*.zip + - name: Upload to Release + if: github.event_name == 'release' + uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/*/*.zip + tag: ${{ github.ref }} + file_glob: true + + analyze-clang: + name: Analyze Clang + runs-on: macos-latest + env: + JOB_TYPE: ANALYZE + steps: + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: acidanthera/MacKernelSDK + path: MacKernelSDK + - name: CI Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 + - name: Lilu Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 + + - run: xcodebuild analyze -quiet -scheme AirportBrcmFixup -configuration Debug CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] + - run: xcodebuild analyze -quiet -scheme AirportBrcmFixup -configuration Release CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] + + analyze-coverity: + name: Analyze Coverity + runs-on: macos-latest + env: + JOB_TYPE: COVERITY + if: github.repository_owner == 'acidanthera' && github.event_name != 'pull_request' + steps: + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: acidanthera/MacKernelSDK + path: MacKernelSDK + - name: CI Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 + - name: Lilu Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 + + - name: Run Coverity + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/coverity/covstrap.sh) && eval "$src" || exit 1 + env: + COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + COVERITY_SCAN_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} + COVERITY_BUILD_COMMAND: xcodebuild -configuration Release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4b75b11..0000000 --- a/.travis.yml +++ /dev/null @@ -1,65 +0,0 @@ -language: cpp - -env: - global: - - secure: "eDfO7u4h8JA8L6LOYalAFLgthOMci7t9aclMzKEVL34XZt+NKwrUeAtO58aYyxijc0FR/8vnJIe6Ukl6AHTXRQmUyWS0qtZCK8/e+/pYPI3ERWq/EgneQlVk4MolDI7AvraOZZEZUZ4wIFrdMxEaCIokslyYJrjNVCb76Qh2xdTbLLhWh5x2U4zI7BAXf9BX4jGJ/UO/srp15Y8Ivo5NeAn1YSLMBab+1GKY27jPlHquwaT7YrSqgBGfMVXF/H3lIYvrmwFpj2rX53otjfMGFNQGxUXcfkJdrkUHVZg0kiOcE+j9XSLZOoA1USHwO15fAlz+SkGCevgtmO1X5WxVhRj4pmJgEJLMUcemeLotK7Me4fjhU2Lu6QZqvBmACQb8lzqYKOx212L0m+6vVzzBAlfNLvEmq4XpxN4eg9hkKt48mQuwOYXVX6EtKf861PpYFd7lFGrsxnrfBhC4B1qsgpODro5P71k2FdKQWJNSrxgj6h9Wqw/j71gCDEuKX0FMdm0zUkob9O+fVatvBj2MfmMktuaXrqoVYGgwzHLyT0tIXxtZrfYtVF7elFYdHHv+2JToaA83XGPyvYeDGXtMKQ2vGs2V4nKxQBdZCna0DYIWdrTeEsVDWJ5tJYWMQAn752zytk3yIrk9JqWXFmni+vmjCdh7x1mzewTlBo2mTLk=" - -matrix: - include: - - os: osx - name: "Build" - osx_image: xcode11.6 - compiler: clang - - script: - - git clone https://github.com/acidanthera/MacKernelSDK - - src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 - - xcodebuild -jobs 1 -configuration Debug - - xcodebuild -jobs 1 -configuration Release - - deploy: - provider: releases - skip_cleanup: true - file: "build/*/*.zip" - file_glob: true - api_key: - secure: GIgIckH67VaSb8RhtbaBwZds7T/bH+Xbf9tU3vvY9dzLfZ8qh2RfHgQssPd8yNGdBnQuYj4nXp9Bzkw8Sx8BGx+SDrwLyf1BkIquk3jggkaa19gLmPAYq7ZFAW+D9oA9Oqwf6z5YI6z/jYOvrMwUjX94+AUhxGbO0/4ssCSsU6Yc76vzsWcsknbiPZmQxMghsXMZe69xi01Qcp5P1hBd71AnPv0ZJgh/jD8qHLU5uV8JLL+M+O1Lv4aRFOjJfVmokUaYjs+QrXOhwkAHPtKXarumkNTeQizzSL6vtRnF5Zuj1y8j97pePtryTN6PH1oZorxWsEJEANLqp9Gp6iqv8sNmrygfYY6unpTQZRGaiYd4qz2dEExZMNymdCofZ/Zk+zXfFlk1Yh6uOELRUB2v0vqDG/aa7nZhIBnz0ODrcvh64He+/+h6F/z5gLUmxkdqkjecH3zn/8AyiqMC1uYqIru6HbuBZyoMGjT9RvLJWt5CcP/jhdgoonxWEao8o21WHBI8u0o3608tsYguIWxMVfTmIl4xCUTp2FRcvqmmlvwUSkDFhz6YeXWdyVRb0cJQiKMD11wLiWrpLy3GDdpm/LBKhAtVJxVmVdMx+B+I0scWaoxsyoff6r4R20tPHGHxZkOMsdfRPW+8mvIXR3XaAKMODg+9pJvM/Wy/q5JYpNk= - on: - tags: true - - - os: osx - name: "Analyze Clang" - osx_image: xcode11 - compiler: clang - - script: - - git clone https://github.com/acidanthera/MacKernelSDK - - src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 - - xcodebuild analyze -quiet -scheme AirportBrcmFixup -configuration Debug CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] - - xcodebuild analyze -quiet -scheme AirportBrcmFixup -configuration Release CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] - - - os: osx - name: "Analyze Coverity" - osx_image: xcode10.2 - compiler: clang - - before_install: - - git clone https://github.com/acidanthera/MacKernelSDK - - curl -Ls https://entrust.com/root-certificates/entrust_l1k.cer -o ~/entrust_l1k.crt || exit 1 - - curl -LS https://curl.haxx.se/ca/cacert.pem -o ~/cacert.pem || exit 1 - - cat ~/entrust_l1k.crt >> ~/cacert.pem || exit 1 - - echo "cacert=\"$HOME/cacert.pem\"" > ~/.curlrc || exit 1 - - echo "ca_certificate=$HOME/cacert.pem" > ~/.wgetrc || exit 1 - - script: - - echo "This script runs coverity..." - - addons: - coverity_scan: - project: - name: "acidanthera/AirportBrcmFixup" - description: "AirportBrcmFixup" - notification_email: $NOTIFICATION_EMAIL - build_command_prepend: "src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval \"$src\" || exit 1 ; src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/covstrap.sh) && eval \"$src\" || exit 1" - build_command: "xcodebuild -configuration Release" - branch_pattern: master diff --git a/README.md b/README.md index e11a468..abfed9c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ AirportBrcmFixup ================== -[![Build Status](https://travis-ci.com/acidanthera/AirportBrcmFixup.svg?branch=master)](https://travis-ci.com/acidanthera/AirportBrcmFixup) [![Scan Status](https://scan.coverity.com/projects/16401/badge.svg?flat=1)](https://scan.coverity.com/projects/16401) +[![Build Status](https://github.com/acidanthera/AirportBrcmFixup/workflows/CI/badge.svg?branch=master)](https://github.com/acidanthera/AirportBrcmFixup/actions) [![Scan Status](https://scan.coverity.com/projects/16401/badge.svg?flat=1)](https://scan.coverity.com/projects/16401) An open source kernel extension providing a set of patches required for non-native Airport Broadcom Wi-Fi cards.