mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
add arm64 build path
This commit is contained in:
parent
2e91d66888
commit
83d2aa85ec
|
@ -72,6 +72,7 @@ def parse_options():
|
||||||
'nojava',
|
'nojava',
|
||||||
'nodotnet',
|
'nodotnet',
|
||||||
'dotnet-key=',
|
'dotnet-key=',
|
||||||
|
'arch=',
|
||||||
'githash',
|
'githash',
|
||||||
'nopython'
|
'nopython'
|
||||||
])
|
])
|
||||||
|
@ -96,6 +97,11 @@ def parse_options():
|
||||||
JAVA_ENABLED = False
|
JAVA_ENABLED = False
|
||||||
elif opt == '--githash':
|
elif opt == '--githash':
|
||||||
GIT_HASH = True
|
GIT_HASH = True
|
||||||
|
elif opt == '--arch':
|
||||||
|
if arg == "arm64":
|
||||||
|
mk_util.IS_ARCH_ARM64 = True
|
||||||
|
else:
|
||||||
|
raise MKException(f"Invalid architecture directive '{arg}'. Legal directives: arm64")
|
||||||
else:
|
else:
|
||||||
raise MKException("Invalid command line option '%s'" % opt)
|
raise MKException("Invalid command line option '%s'" % opt)
|
||||||
set_build_dir(path)
|
set_build_dir(path)
|
||||||
|
|
|
@ -4,7 +4,6 @@ variables:
|
||||||
Minor: '8'
|
Minor: '8'
|
||||||
Patch: '16'
|
Patch: '16'
|
||||||
NightlyVersion: $(Major).$(Minor).$(Patch).$(Build.BuildId)-$(Build.DefinitionName)
|
NightlyVersion: $(Major).$(Minor).$(Patch).$(Build.BuildId)-$(Build.DefinitionName)
|
||||||
MacFlags: 'CXXFLAGS="-arch x86_64" LINK_EXTRA_FLAGS="-arch x86_64" SLINK_EXTRA_FLAGS="-arch x86_64"'
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
|
@ -15,7 +14,7 @@ stages:
|
||||||
pool:
|
pool:
|
||||||
vmImage: "macOS-latest"
|
vmImage: "macOS-latest"
|
||||||
steps:
|
steps:
|
||||||
- script: $(MacFlags) python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
- script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
||||||
- script: git clone https://github.com/z3prover/z3test z3test
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
||||||
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
||||||
|
@ -25,6 +24,21 @@ stages:
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
|
|
||||||
|
- job: MacArm64
|
||||||
|
displayName: "Mac ARM64 Build"
|
||||||
|
pool:
|
||||||
|
vmImage: "macOS-latest"
|
||||||
|
steps:
|
||||||
|
- script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk --arch=arm64
|
||||||
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
|
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
||||||
|
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
inputs:
|
||||||
|
artifactName: 'MacArm64'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
|
|
||||||
- job: Ubuntu
|
- job: Ubuntu
|
||||||
displayName: "Ubuntu build"
|
displayName: "Ubuntu build"
|
||||||
pool:
|
pool:
|
||||||
|
|
Loading…
Reference in a new issue