diff options
Diffstat (limited to '.github/workflows/create_release.yml')
| -rw-r--r-- | .github/workflows/create_release.yml | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 64110dcb8..329dbc017 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -93,56 +93,56 @@ jobs: name: zenserver-linux path: build/zenserver-linux.zip -# bundle-macos: -# runs-on: [self-hosted, macos, x64] -# timeout-minutes: 15 -# env: -# VCPKG_VERSION: 2022.08.15 -# -# 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 }}-release-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-x64-v5 -# -# - name: Bundle -# run: | -# xmake bundle -v -y -# env: -# VCPKG_ROOT: ${{ github.workspace }}/.vcpkg -# -# - name: Upload zenserver-macos -# uses: actions/upload-artifact@v3 + bundle-macos: + runs-on: [self-hosted, macos, x64] + timeout-minutes: 15 + env: + VCPKG_VERSION: 2022.08.15 + + steps: + - uses: actions/checkout@v2 + +# - name: Set up GCC 11 +# uses: egor-tensin/setup-gcc@v1 # with: -# name: zenserver-macos -# path: build/zenserver-macos.zip +# 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 }}-release-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-x64-v5 + + - name: Bundle + run: | + xmake bundle -v -y + env: + VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + + - name: Upload zenserver-macos + uses: actions/upload-artifact@v3 + with: + name: zenserver-macos + path: build/zenserver-macos.zip create-release: runs-on: [self-hosted, linux, x64] timeout-minutes: 5 - needs: [bundle-linux, bundle-windows] #, bundle-macos] + needs: [bundle-linux, bundle-macos, bundle-windows] steps: - uses: actions/checkout@v2 @@ -153,11 +153,11 @@ jobs: name: zenserver-linux path: linux -# - name: Download MacOS artifacts -# uses: actions/download-artifact@v1 -# with: -# name: zenserver-macos -# path: macos + - name: Download MacOS artifacts + uses: actions/download-artifact@v1 + with: + name: zenserver-macos + path: macos - name: Download Windows artifacts uses: actions/download-artifact@v1 @@ -203,4 +203,4 @@ jobs: files: | linux/zenserver-linux.zip win64/zenserver-win64.zip -# macos/zenserver-macos.zip + macos/zenserver-macos.zip |