Skip to content

Commit

Permalink
.github: force pread64 to be set in glibc
Browse files Browse the repository at this point in the history
This fixes a compilation error. We shouldn't need this fix for long.
  • Loading branch information
kevinburkesegment committed Feb 26, 2024
1 parent 3f56422 commit 496938a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: |
SHA=${GITHUB_SHA:0:7}
echo "SHA=$SHA" >> $GITHUB_ENV
# can be removed when we replace go-sqlite3 fork with upstream fork.
echo 'CGO_CFLAGS=-D_LARGEFILE64_SOURCE' >> $GITHUB_ENV
echo "IMAGE=ghcr.io/segmentio/ctlstore:$SHA-arm" >> $GITHUB_ENV
- name: "Image Name"
Expand Down Expand Up @@ -79,4 +81,4 @@ jobs:
--build-arg VERSION=${SHA} \
--push \
.
- run: echo "GHCR PUBLISH SUCCESSFUL"
- run: echo "GHCR PUBLISH SUCCESSFUL"
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,3 @@ jobs:
--push \
.
- run: echo "GHCR PUBLISH SUCCESSFUL"


1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM golang:1.20-alpine
ENV SRC github.com/segmentio/ctlstore
ENV CGO_CFLAGS -D_LARGEFILE64_SOURCE
ARG VERSION

RUN apk --update add gcc git curl alpine-sdk libc6-compat ca-certificates sqlite \
Expand Down

0 comments on commit 496938a

Please sign in to comment.