Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added premake5 support #3

Merged
merged 14 commits into from
Jun 24, 2023
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
pull_request:
branches: [ "main", "master" ]

workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Clone dev2
run: |
git -C D:\ clone https://github.com/ignite720/dev2.git

- name: Setup premake5
uses: abel0b/[email protected]
with:
version: "5.0.0-beta2"

- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
vs-version: "latest"

- name: Build app for release
run: |
premake5 vs2022
msbuild build\VEngine-wks.sln -nologo -m -p:Configuration=Release /p:Platform=x64 /p:Projects="build\VEngine\VEngine.vcxproj"

- name: Create artifact
run: |
mkdir -p temp/artifact
cp bin/x64/Release/*.exe temp/artifact/
#cp -R VEngine/Assets temp/artifact/
cp -R VEngine/Shaders temp/artifact/
cp D:/dev2/fbxsdk202032/lib/vs2017/x64/release/*.dll temp/artifact/
ignite720 marked this conversation as resolved.
Show resolved Hide resolved
cp D:/dev2/PhysX.4.1.229882250/bin/Release/*.dll temp/artifact/
cp D:/dev2/qt-5.15.2/bin/*.dll temp/artifact/
cp -R D:/dev2/qt-5.15.2/plugins temp/artifact/

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Release-Artifact
path: temp