mirror of https://github.com/mattn/go-sqlite3.git
use locally checked out lib in the docker job
see https://github.com/mattn/go-sqlite3/pull/1177
This commit is contained in:
parent
9fd6f4ffd3
commit
c260ecf7e4
|
@ -17,6 +17,5 @@ jobs:
|
||||||
|
|
||||||
- name: Run example - simple
|
- name: Run example - simple
|
||||||
run: |
|
run: |
|
||||||
cd ./_example/simple
|
docker build -t simple -f ./_example/simple/Dockerfile .
|
||||||
docker build -t simple .
|
|
||||||
docker run simple | grep 99\ こんにちは世界099
|
docker run simple | grep 99\ こんにちは世界099
|
||||||
|
|
|
@ -26,7 +26,9 @@ WORKDIR /workspace
|
||||||
COPY . /workspace/
|
COPY . /workspace/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
cd _example/simple && \
|
||||||
go mod init github.com/mattn/sample && \
|
go mod init github.com/mattn/sample && \
|
||||||
|
go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
|
||||||
go mod tidy && \
|
go mod tidy && \
|
||||||
go install -ldflags='-s -w -extldflags "-static"' ./simple.go
|
go install -ldflags='-s -w -extldflags "-static"' ./simple.go
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue