diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml new file mode 100755 index 0000000..48411a4 --- /dev/null +++ b/.github/workflows/default.yml @@ -0,0 +1,17 @@ +name: Release Build + +on: [push] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - name: Windows-amd64 + working-directory: build + run: | + ..\tools\genie.exe vs2019 + msbuild vs2019\Symmetry.sln -p:Configuration=Release + + diff --git a/build/genie.lua b/build/genie.lua index d66a451..ed9a161 100644 --- a/build/genie.lua +++ b/build/genie.lua @@ -8,12 +8,12 @@ solution "Symmetry" postbuildcommands {"ln -fs " .. os.getcwd() .. "/../assets " .. os.getcwd() .. "release"} buildoptions {"-Wall", "-std=c99"} - configuration {"windows", "vs2017"} + configuration {"windows", "vs2019"} defines {"_CRT_SECURE_NO_WARNINGS"} flags {"NoIncrementalLink", "NoEditAndContinue"} local windowsPlatform = string.gsub(os.getenv("WindowsSDKVersion") or "10.0.16299.0", "\\", "") local action = premake.action.current() - if(action ~= nil and _ACTION == "vs2017") then + if(action ~= nil and _ACTION == "vs2019") then action.vstudio.windowsTargetPlatformVersion = windowsPlatform action.vstudio.windowsTargetPlatformMinVersion = windowsPlatform end @@ -41,14 +41,14 @@ solution "Symmetry" -- local copy_dest_dir = "" -- local symlink_dest_dir = "" - -- if(_ARGS[1] == "vs2017") then - -- copy_dest_dir = "vs2017" + -- if(_ARGS[1] == "vs2019") then + -- copy_dest_dir = "vs2019" -- symlink_dest_dir = "..\\..\\..\\assets" -- printf("Copying DLLs to visual studio build directory...\n") -- end -- -- Create sym links - -- local output = os.outputof("mklink /D vs2017\\debug\\assets ..\\..\\..\\assets" .. path.translate(copy_dest_dir, "\\") .. "\\debug\\assets " .. symlink_dest_dir) + -- local output = os.outputof("mklink /D vs2019\\debug\\assets ..\\..\\..\\assets" .. path.translate(copy_dest_dir, "\\") .. "\\debug\\assets " .. symlink_dest_dir) -- printf("MKlink debug output : %s", output) -- output = os.outputof("mklink /D " .. path.translate(copy_dest_dir, "\\") .. "\\release\\assets " ..symlink_dest_dir) -- printf("MKlink release output : %s", output) @@ -101,7 +101,7 @@ solution "Symmetry" 'install_name_tool -change "/usr/local/lib/libsoloud.dylib" "@rpath/libsoloud.dylib" release/Symmetry', } - configuration {"windows", "vs2017"} + configuration {"windows", "vs2019"} includedirs {"../include/windows/sdl2/", "../include/common/soloud/", "../include/windows/"} libdirs {"../lib/windows/sdl2/", "../lib/windows/soloud/", "../lib/windows/ode/"} @@ -114,7 +114,7 @@ solution "Symmetry" configuration {"not macosx", "Release"} links {"soloud_x64"} - configuration {"windows", "Release", "vs2017"} + configuration {"windows", "Release", "vs2019"} postbuildcommands { "copy ..\\..\\lib\\windows\\sdl2\\SDL2.dll release\\ /Y", @@ -130,7 +130,7 @@ solution "Symmetry" } links {"ode_double", "SDL2"} - configuration {"windows", "Debug", "vs2017"} + configuration {"windows", "Debug", "vs2019"} postbuildcommands { "copy ..\\..\\lib\\windows\\sdl2\\SDL2.dll debug\\ /Y", diff --git a/tools/genie.exe b/tools/genie.exe old mode 100644 new mode 100755 index e057e83..bd5b6fe Binary files a/tools/genie.exe and b/tools/genie.exe differ diff --git a/tools/launch_vs.bat b/tools/launch_vs.bat index 7a02b72..65c50fe 100644 --- a/tools/launch_vs.bat +++ b/tools/launch_vs.bat @@ -1,3 +1,3 @@ @echo off -devenv W:\build\vs2017\Symmetry.sln +devenv W:\build\vs2019\Symmetry.sln diff --git a/tools/regen_project.bat b/tools/regen_project.bat index 5e64745..819dce9 100644 --- a/tools/regen_project.bat +++ b/tools/regen_project.bat @@ -1,4 +1,4 @@ @echo off chdir /D W:\build\ -genie.exe vs2017 +genie.exe vs2019