aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-25 20:06:35 +0200
committerDan Engelbrecht <[email protected]>2022-06-02 00:35:51 +0200
commit67954fa86e56ebd01edefb8b0835b418c85f04ce (patch)
tree10b0d5ce6486d625acdc181a084cbf8f79e0f600 /.github/workflows
parentcleanup (diff)
downloadzen-67954fa86e56ebd01edefb8b0835b418c85f04ce.tar.xz
zen-67954fa86e56ebd01edefb8b0835b418c85f04ce.zip
bundle if we are on main branch
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/self_host_build.yml36
1 files changed, 32 insertions, 4 deletions
diff --git a/.github/workflows/self_host_build.yml b/.github/workflows/self_host_build.yml
index b728e33c3..933fcd321 100644
--- a/.github/workflows/self_host_build.yml
+++ b/.github/workflows/self_host_build.yml
@@ -1,8 +1,8 @@
-name: Validate Build
+name: Validate
on:
pull_request:
- types: [opened, reopened, synchronize, reopened]
+ types: [opened, reopened, synchronize]
branches: [ main ]
jobs:
@@ -21,7 +21,7 @@ jobs:
exclude-regex: (.*thirdparty.*)
windows-build:
- name: Build Windows
+ name: Build & Test Windows
runs-on: [self-hosted, windows, x64]
timeout-minutes: 10
strategy:
@@ -57,6 +57,20 @@ jobs:
${{ 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')
+ run: |
+ xmake bundle -v -y
+ env:
+ VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
+
+ - name: upload zenserver-linux
+ if: ${{ github.ref_name == 'main')
+ uses: actions/upload-artifact@v3
+ with:
+ name: zenserver-linux
+ path: build/zenserver-linux.zip
+
- name: Config
run: |
xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }}
@@ -70,7 +84,7 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
linux-build:
- name: Build Linux
+ name: Build & Test Linux
runs-on: [self-hosted, linux, x64]
timeout-minutes: 10
strategy:
@@ -111,6 +125,20 @@ jobs:
${{ 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')
+ run: |
+ xmake bundle -v -y
+ env:
+ VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
+
+ - name: upload zenserver-win64
+ if: ${{ github.ref_name == 'main')
+ uses: actions/upload-artifact@v3
+ with:
+ name: zenserver-win64
+ path: build/zenserver-win64.zip
+
- name: Config
run: |
xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }}