Skip to content

Update main.yml

Update main.yml #97

Workflow file for this run

name: Build StarEngine
on:
push:
branches:
- main
- 1st-project
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Checkout correct commit for GLFW submodule
run: |
cd StarEngine/vendor/GLFW
git fetch origin 9544dde61dc927b5f5d8a3b393e2ede295d3abd4
git checkout 9544dde61dc927b5f5d8a3b393e2ede295d3abd4
- name: Set up MSBuild
uses: microsoft/[email protected]
- uses: abel0b/[email protected]
with:
version: "5.0.0-beta4"
- name: Generate project files with Premake
run: premake5 vs2022
- name: Build project with MSBuild
run: MSBuild /m /p:Configuration=Debug StarEngine.sln
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: StarEngine-Windows
path: |
bin/Debug-windows-x86_64/Sandbox/Sandbox.exe
bin/Debug-windows-x86_64/Sandbox/assets/