diff options
| -rw-r--r-- | .github/workflows/self_host_build.yml | 200 |
1 files changed, 100 insertions, 100 deletions
diff --git a/.github/workflows/self_host_build.yml b/.github/workflows/self_host_build.yml index 1c7b466ca..8bb57a4b4 100644 --- a/.github/workflows/self_host_build.yml +++ b/.github/workflows/self_host_build.yml @@ -20,103 +20,103 @@ jobs: 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 + 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 |