mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-04-19 19:32:53 +00:00
build: more arm64 tests on macos (#39)
This commit is contained in:
parent
02335285e6
commit
d8f265f284
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -134,11 +134,14 @@ jobs:
|
||||
- Release
|
||||
arch:
|
||||
- x64
|
||||
- arm64
|
||||
include:
|
||||
- configuration: Release
|
||||
config: release
|
||||
- arch: x64
|
||||
platform: x64
|
||||
- arch: arm64
|
||||
platform: arm64
|
||||
steps:
|
||||
- name: Check out files
|
||||
uses: actions/checkout@v3.5.3
|
||||
|
4
deps/premake/libtomcrypt.lua
vendored
4
deps/premake/libtomcrypt.lua
vendored
@ -57,6 +57,10 @@ function libtomcrypt.project()
|
||||
filter "platforms:x64"
|
||||
buildoptions "-march=native"
|
||||
filter {}
|
||||
|
||||
filter "platforms:arm64"
|
||||
buildoptions "-mcpu=apple-m1"
|
||||
filter {}
|
||||
end
|
||||
|
||||
warnings "Off"
|
||||
|
@ -39,7 +39,7 @@ targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
||||
configurations {"Debug", "Release"}
|
||||
|
||||
if os.istarget("darwin") then
|
||||
platforms {"x64"}
|
||||
platforms {"x64", "arm64"}
|
||||
else
|
||||
platforms {"x86", "x64", "arm64"}
|
||||
end
|
||||
@ -79,6 +79,13 @@ if os.istarget("linux") or os.istarget("darwin") then
|
||||
linkoptions "-pthread"
|
||||
end
|
||||
|
||||
if os.istarget("darwin") then
|
||||
filter "platforms:arm64"
|
||||
buildoptions "-arch arm64"
|
||||
linkoptions "-arch arm64"
|
||||
filter {}
|
||||
end
|
||||
|
||||
if os.getenv("CI") then
|
||||
defines "CI"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user