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
This commit is part of merge request !15. Comments created here will be created in the context of that merge request.
...@@ -6,9 +6,7 @@ stages: ...@@ -6,9 +6,7 @@ stages:
# - archive # - archive
# - deploy # - deploy
build-macOS: .compile_models: &compile_models
stage: build
script: script:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ Sources/SwiftNLP/Models - 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 - xcrun coremlcompiler generate Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ --language Swift Sources/SwiftNLP/Resources
...@@ -16,6 +14,12 @@ build-macOS: ...@@ -16,6 +14,12 @@ build-macOS:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/float32_model.mlpackage/ Sources/SwiftNLP/Models - 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 - 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 - mv Sources/SwiftNLP/Resources/float32_model.swift Sources/SwiftNLP/2.\ Encoding
build-macOS:
stage: build
script:
- *compile_models
- swift build - swift build
tags: tags:
...@@ -23,25 +27,20 @@ build-macOS: ...@@ -23,25 +27,20 @@ build-macOS:
test-macOS: test-macOS:
stage: test stage: test
script: script:
- xcrun coremlcompiler compile Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ Sources/SwiftNLP/Models - *compile_models
- xcrun coremlcompiler generate Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/ --language Swift Sources/SwiftNLP/Resources - swift test -c release -Xswiftc -enable-testing
- 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
tags: tags:
- macOS - macOS
build-linux: build-linux:
stage: build stage: build
script: script:
- swiftly install latest - swiftly install latest
- *compile_models
- swift build -c release -Xswiftc -cross-module-optimization - swift build -c release -Xswiftc -cross-module-optimization
tags: tags:
- linux - linux
...@@ -50,8 +49,10 @@ build-linux: ...@@ -50,8 +49,10 @@ build-linux:
test-linux: test-linux:
stage: test stage: test
script: 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=address -c release -Xswiftc -enable-testing
# - swift test --sanitize=thread -c release -Xswiftc -enable-testing # - swift test --sanitize=thread -c release -Xswiftc -enable-testing
tags: 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