diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-24 23:52:45 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-24 23:52:45 +0200 |
| commit | 0fa48b0dcb6bcd5d1ea3d34a8d3f7e39951a7282 (patch) | |
| tree | 8ab6f62ee75524f044675e1778f3daec97a3afd9 | |
| parent | run clang format on single instance, don't wait for clang-format (diff) | |
| download | zen-0fa48b0dcb6bcd5d1ea3d34a8d3f7e39951a7282.tar.xz zen-0fa48b0dcb6bcd5d1ea3d34a8d3f7e39951a7282.zip | |
use exclude regex in clang format
| -rw-r--r-- | .github/workflows/self_host_build.yml | 261 |
1 files changed, 104 insertions, 157 deletions
diff --git a/.github/workflows/self_host_build.yml b/.github/workflows/self_host_build.yml index eb378e5f6..1c7b466ca 100644 --- a/.github/workflows/self_host_build.yml +++ b/.github/workflows/self_host_build.yml @@ -13,163 +13,110 @@ jobs: steps: - uses: actions/checkout@v2 - - name: clang-format 'zen' + - name: clang-format uses: jidicula/[email protected] with: clang-format-version: '13' - check-path: 'zen' - - - name: clang-format 'zencore' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zencore' - - - name: clang-format 'zencore-test' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zencore-test' - - - name: clang-format 'zenhttp' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenhttp' - - - name: clang-format 'zenserver-test' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenserver-test' - - - name: clang-format 'zenstore' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenstore' - - - name: clang-format 'zenstore-test' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenstore-test' - - - name: clang-format 'zentest-appstub' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zentest-appstub' - - - name: clang-format 'zenutil' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenutil' - - - name: clang-format 'zenserver' - uses: jidicula/[email protected] - with: - clang-format-version: '13' - check-path: 'zenserver' - - windows-build: - name: Build Windows - runs-on: [self-hosted, windows, x64] - strategy: - matrix: - config: - - 'debug' - - 'release' - arch: - - 'x64' - env: - VCPKG_VERSION: 2022.03.10 - - steps: - - uses: actions/checkout@v2 - - - name: Setup xmake - uses: xmake-io/github-action-setup-xmake@v1 - with: - xmake-version: 2.6.4 - - - name: Installing vcpkg - run: | - git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg - cd .vcpkg - .\bootstrap-vcpkg.bat - .\vcpkg.exe integrate install - cd .. - - - name: Cache vcpkg - uses: actions/cache@v2 - with: - path: | - ${{ github.workspace }}\.vcpkg\installed - key: ${{ runner.os }}-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v5 - - - name: Config - run: | - xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} - env: - VCPKG_ROOT: ${{ github.workspace }}/.vcpkg - - - name: Build & Test - run: | - xmake test -v -y - env: - VCPKG_ROOT: ${{ github.workspace }}/.vcpkg - - linux-build: - name: Build Linux - runs-on: [self-hosted, linux, x64] - strategy: - matrix: - config: - - 'debug' - - 'release' - arch: - - 'x86_64' - env: - VCPKG_VERSION: 2022.03.10 - - steps: - - uses: actions/checkout@v2 - - - name: Set up GCC 11 - uses: egor-tensin/setup-gcc@v1 - with: - version: 11 - platform: x64 - - - name: Setup xmake - uses: xmake-io/github-action-setup-xmake@v1 - with: - xmake-version: 2.6.4 - - - name: Installing vcpkg - run: | - git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg - cd .vcpkg - ./bootstrap-vcpkg.sh - cd .. - - - name: Cache vcpkg - uses: actions/cache@v2 - with: - path: | - ${{ github.workspace }}/.vcpkg/installed - key: ${{ runner.os }}-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v5 - - - name: Config - run: | - xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} - env: - VCPKG_ROOT: ${{ github.workspace }}/.vcpkg - - - name: Build & Test - run: | - xmake test -v -y - env: - VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + check-path: '.' + exclude-regex: (.*thirdparty.*) + +# windows-build: +# name: Build Windows +# runs-on: [self-hosted, windows, x64] +# strategy: +# matrix: +# config: +# - 'debug' +# - 'release' +# arch: +# - 'x64' +# env: +# VCPKG_VERSION: 2022.03.10 +# +# steps: +# - uses: actions/checkout@v2 +# +# - name: Setup xmake +# uses: xmake-io/github-action-setup-xmake@v1 +# with: +# xmake-version: 2.6.4 +# +# - name: Installing vcpkg +# run: | +# git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg +# cd .vcpkg +# .\bootstrap-vcpkg.bat +# .\vcpkg.exe integrate install +# cd .. +# +# - name: Cache vcpkg +# uses: actions/cache@v2 +# with: +# path: | +# ${{ github.workspace }}\.vcpkg\installed +# key: ${{ runner.os }}-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v5 +# +# - name: Config +# run: | +# xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} +# env: +# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg +# +# - name: Build & Test +# run: | +# xmake test -v -y +# env: +# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg +# +# linux-build: +# name: Build Linux +# runs-on: [self-hosted, linux, x64] +# strategy: +# matrix: +# config: +# - 'debug' +# - 'release' +# arch: +# - 'x86_64' +# env: +# VCPKG_VERSION: 2022.03.10 +# +# steps: +# - uses: actions/checkout@v2 +# +# - name: Set up GCC 11 +# uses: egor-tensin/setup-gcc@v1 +# with: +# version: 11 +# platform: x64 +# +# - name: Setup xmake +# uses: xmake-io/github-action-setup-xmake@v1 +# with: +# xmake-version: 2.6.4 +# +# - name: Installing vcpkg +# run: | +# git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg +# cd .vcpkg +# ./bootstrap-vcpkg.sh +# cd .. +# +# - name: Cache vcpkg +# uses: actions/cache@v2 +# with: +# path: | +# ${{ github.workspace }}/.vcpkg/installed +# key: ${{ runner.os }}-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v5 +# +# - name: Config +# run: | +# xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} +# env: +# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg +# +# - name: Build & Test +# run: | +# xmake test -v -y +# env: +# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg |