Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions .github/workflows/PreRelease.yml.disabled

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release Build

on:
release:
types: [created, published]
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: windows-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
build_configuration: [release]
architecture: [x64]

steps:
- name: Checkout Repository with Submodules
uses: actions/checkout@v4
with:
submodules: recursive # Fetch submodules recursively
fetch-depth: 0 # Ensures a full clone (needed for some submodules)

- name: Initialize and Update Submodules (if needed)
run: |
git submodule sync --recursive
git submodule update --init --recursive

- name: Install XMake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest

- name: Configure XMake
run: |
xmake f -m ${{ matrix.build_configuration }} -a ${{ matrix.architecture }} -y

- name: Build with XMake
run: |
xmake build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Internal-${{ matrix.build_configuration }}-${{ matrix.architecture }}
path: Build/${{ matrix.build_configuration }}/Internal.dll

- name: Create Release Archive
run: |
Compress-Archive -Path Build/${{ matrix.build_configuration }}/Internal.dll -DestinationPath Internal-${{ matrix.build_configuration }}-${{ matrix.architecture }}.zip

- name: Upload Release Asset
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: Internal-${{ matrix.build_configuration }}-${{ matrix.architecture }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/Xmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Configure XMake
run: |
xmake f -m ${{ matrix.build_configuration }} -a ${{ matrix.architecture }}
xmake f -m ${{ matrix.build_configuration }} -a ${{ matrix.architecture }} -y

- name: Build with XMake
run: |
Expand Down
Loading
Loading