-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix cross compilation: libc::c_char is platform dependent
- Loading branch information
Daulet Zhanguzin
committed
Jan 7, 2024
1 parent
4fd5a66
commit 6e58579
Showing
6 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,13 @@ RUN cargo build --release | |
FROM golang:1.21 as builder-go | ||
ARG TARGETPLATFORM | ||
WORKDIR /workspace | ||
COPY ./release . | ||
COPY ./test/data ./test/data | ||
RUN go mod download | ||
COPY ./release/go.mod . | ||
COPY ./release/main.go . | ||
# can't rely on tokenizers module because latest release doesn't include recent changes | ||
COPY tokenizer.go ./tokenizers/ | ||
COPY tokenizers.h ./tokenizers/ | ||
COPY --from=builder-rust \ | ||
/workspace/target/release/libtokenizers.a \ | ||
/go/pkg/mod/github.com/daulet/[email protected]/libtokenizers.a | ||
RUN go run main.go | ||
./tokenizers/ | ||
COPY ./test/data ./test/data | ||
RUN go run . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module github.com/daulet/tokenizers/example | ||
module github.com/daulet/tokenizers/release | ||
|
||
go 1.21 | ||
|
||
require github.com/daulet/tokenizers v0.6.0 | ||
go 1.21.5 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters