Skip to content

Commit

Permalink
[Fix]: Premake5 Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
harshfeudal committed Sep 12, 2023
1 parent 24df3bb commit 8e6520f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Auto detect text files and perform LF normalization
*.h linguist-language=C++
*.cpp linguist-language=C++
*.lua linguist-language=lua
*.lua linguist-language=lua
26 changes: 13 additions & 13 deletions .github/workflows/cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ jobs:
premake-windows-build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3
steps:
- name: Checkout Harshie
uses: actions/checkout@v3

- name: Setup MSVC
uses: microsoft/[email protected]
- name: Setup MSVC
uses: microsoft/[email protected]

- name: Premake setup
uses: abel0b/[email protected]
with:
version: "5.0.0-beta2"
- name: Premake setup
uses: abel0b/[email protected]
with:
version: "5.0.0-beta2"

- name: Harshie Build Test
run: |
premake5 vs2022
msbuild /m "Harshie.sln" /p:configuration="release"
- name: Harshie Build Test
run: |
premake5 vs2022
msbuild /m "Harshie.sln" /p:configuration="release"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ build/
*.exe
*.db
.env
*.rc
*.rc
3 changes: 2 additions & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ project "Harshie"

filter "configurations:Release"
runtime "Release"
optimize "on"
optimize "on"

2 changes: 1 addition & 1 deletion resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ if inputFile then
end
else
print("Error: Failed to open the input file.")
end
end
2 changes: 1 addition & 1 deletion resources/harshie.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ BEGIN
BEGIN
VALUE "Translation", 0x409, 1200
END
END
END
2 changes: 1 addition & 1 deletion setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ end

copyFiles(sourceDir, destinationDir)

print("Copying DLLs to x64/Release completed.")
print("Copying DLLs to x64/Release completed.")
2 changes: 1 addition & 1 deletion start-premake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ if not exist premake5.exe (
rem Run Premake to generate Visual Studio 2022 project files
premake5 vs2022

endlocal
endlocal

0 comments on commit 8e6520f

Please sign in to comment.