diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-23 23:42:05 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-06-02 00:35:50 +0200 |
| commit | 3598016c6cf785d777c97055c14d186cd0b65ba2 (patch) | |
| tree | d6b306f9a0dd6f04de2a71976e47d5835f3b4714 /.github/workflows | |
| parent | Merge pull request #118 from EpicGames/de/keep-zen-upstream-response (diff) | |
| download | zen-3598016c6cf785d777c97055c14d186cd0b65ba2.tar.xz zen-3598016c6cf785d777c97055c14d186cd0b65ba2.zip | |
create_release.yml
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/create_release.yml | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 000000000..9951164c2 --- /dev/null +++ b/.github/workflows/create_release.yml @@ -0,0 +1,112 @@ +name: Create Release + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +jobs: + windows-bundle: + + runs-on: [self-hosted, windows, x64] + + strategy: + matrix: + config: + - '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: Bundle + run: | + xmake bundle -v -y + env: + VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + + - uses: actions/upload-artifact@v3 + name: upload ${{matrix.target}} + with: + name: linux_x64-${{matrix.target}}-${{matrix.config}} + path: | + build/zenserver-win64.zip + + linux-bundle: + runs-on: [self-hosted, linux, x64] + + strategy: + matrix: + config: + - 'release' + arch: + - 'x64' + + 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: Bundle + run: | + xmake bundle -v -y + env: + VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + + - uses: actions/upload-artifact@v3 + name: upload ${{matrix.target}} + with: + name: linux_x64-${{matrix.target}}-${{matrix.config}} + path: | + build/zenserver-linux.zip |