Skip to content
Snippets Groups Projects
Commit d42a052d authored by Abhinav Jain's avatar Abhinav Jain
Browse files

cleanup ci script

parent fd1d3c06
No related branches found
No related tags found
1 merge request!15Add interface for using generic CoreML LLMs
Pipeline #116077 failed
......@@ -6,9 +6,7 @@ stages:
# - archive
# - deploy
build-macOS:
stage: build
.compile_models: &compile_models
script:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ Sources/SwiftNLP/Models
- xcrun coremlcompiler generate Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ --language Swift Sources/SwiftNLP/Resources
......@@ -16,6 +14,12 @@ build-macOS:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/float32_model.mlpackage/ Sources/SwiftNLP/Models
- xcrun coremlcompiler generate Sources/SwiftNLP/Resources/float32_model.mlpackage/ --language Swift Sources/SwiftNLP/Resources
- mv Sources/SwiftNLP/Resources/float32_model.swift Sources/SwiftNLP/2.\ Encoding
build-macOS:
stage: build
script:
- *compile_models
- swift build
tags:
......@@ -23,25 +27,20 @@ build-macOS:
test-macOS:
stage: test
script:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ Sources/SwiftNLP/Models
- xcrun coremlcompiler generate Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ --language Swift Sources/SwiftNLP/Resources
- mv Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.swift Sources/SwiftNLP/2.\ Encoding
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/float32_model.mlpackage/ Sources/SwiftNLP/Models
- xcrun coremlcompiler generate Sources/SwiftNLP/Resources/float32_model.mlpackage/ --language Swift Sources/SwiftNLP/Resources
- mv Sources/SwiftNLP/Resources/float32_model.swift Sources/SwiftNLP/2.\ Encoding
- swift test -c release -Xswiftc -enable-testing
# - swift test --sanitize=address -c release -Xswiftc -enable-testing
# - swift test --sanitize=thread -c release -Xswiftc -enable-testing
- *compile_models
- swift test -c release -Xswiftc -enable-testing
tags:
- macOS
build-linux:
stage: build
script:
- swiftly install latest
- *compile_models
- swift build -c release -Xswiftc -cross-module-optimization
tags:
- linux
......@@ -50,8 +49,10 @@ build-linux:
test-linux:
stage: test
script:
- swift test -c release -Xswiftc -enable-testing
- *compile_models
- swift test -c release -Xswiftc -enable-testing
# - swift test --sanitize=address -c release -Xswiftc -enable-testing
# - swift test --sanitize=thread -c release -Xswiftc -enable-testing
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment