aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/validate.yml
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-08-22 00:18:11 -0700
committerGitHub <[email protected]>2022-08-22 00:18:11 -0700
commit6ae84ab5cf24afdb697f8ddb572a4ca846e7e239 (patch)
tree07271fbd2de12b77003ffca5ed1dd8080ad46ad7 /.github/workflows/validate.yml
parentDe/fix crash on non responding upstream (#145) (diff)
downloadzen-6ae84ab5cf24afdb697f8ddb572a4ca846e7e239.tar.xz
zen-6ae84ab5cf24afdb697f8ddb572a4ca846e7e239.zip
* re-enable MacOS build * bump vcpkg version
Diffstat (limited to '.github/workflows/validate.yml')
-rw-r--r--.github/workflows/validate.yml140
1 files changed, 70 insertions, 70 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 1a724edfd..bfabecd8b 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -65,7 +65,7 @@ jobs:
xmake-version: 2.6.4
- name: Installing vcpkg
- run: |
+ run: | # Remove-Item -Recurse .vcpkg
git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg
cd .vcpkg
.\bootstrap-vcpkg.bat
@@ -136,7 +136,7 @@ jobs:
xmake-version: 2.6.4
- name: Installing vcpkg
- run: |
+ run: | # rm -rf .vcpkg
git clone -b ${{env.VCPKG_VERSION}} --single-branch https://github.com/Microsoft/vcpkg.git .vcpkg
cd .vcpkg
./bootstrap-vcpkg.sh
@@ -175,72 +175,72 @@ jobs:
env:
VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
-# macos-build:
-# needs: cancel-old-build
-# name: Build & Test MacOS
-# runs-on: [self-hosted, macos, x64]
-# timeout-minutes: 15
-# strategy:
-# matrix:
-# config:
-# - 'debug'
-# - 'release'
-# arch:
-# - 'x86_64'
-# env:
-# VCPKG_VERSION: 2022.08.15
-#
-# steps:
-# - name: Checkout
-# 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: Bundle
-# if: ${{ github.ref_name == 'main' && matrix.config == 'release' }}
-# run: |
-# xmake bundle -v -y
-# env:
-# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
-#
-# - name: Upload zenserver-macos
-# if: ${{ github.ref_name == 'main' && matrix.config == 'release' }}
-# uses: actions/upload-artifact@v3
+ macos-build:
+ needs: cancel-old-build
+ name: Build & Test MacOS
+ runs-on: [self-hosted, macos, x64]
+ timeout-minutes: 15
+ strategy:
+ matrix:
+ config:
+ - 'debug'
+ - 'release'
+ arch:
+ - 'x86_64'
+ env:
+ VCPKG_VERSION: 2022.08.15
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+# - name: Set up GCC 11
+# uses: egor-tensin/setup-gcc@v1
# with:
-# name: zenserver-macos
-# path: build/zenserver-macos.zip
-#
-# - 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
+# 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: | # rm -rf .vcpkg
+ 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: Bundle
+ if: ${{ github.ref_name == 'main' && matrix.config == 'release' }}
+ run: |
+ xmake bundle -v -y
+ env:
+ VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
+
+ - name: Upload zenserver-macos
+ if: ${{ github.ref_name == 'main' && matrix.config == 'release' }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: zenserver-macos
+ path: build/zenserver-macos.zip
+
+ - 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