-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux build #53
Linux build #53
Conversation
./catbird-2: error while loading shared libraries: libswift_Concurrency.so: cannot open shared object file: No such file or directory Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-94-generic x86_64) |
Couldn't build on M1 Macbook with Docker, got a random errors or freezes 😞 Dockerfile #------- build -------
FROM swift:5.5.1-focal as builder
# set up the workspace
RUN mkdir /workspace
WORKDIR /workspace
# copy the source to the docker image
COPY . /workspace
RUN .github/scripts/linux-build.sh
#------- package -------
FROM ubuntu:focal
# copy executables
COPY --from=builder /workspace/catbird-linux /
# set the entry point (application name)
CMD ["catbird-linux"] docker build . -t catbird:1.0 --platform linux/amd64 |
@modestman сatbird is currently being built for x86. To compile to fat binary, you need to pass ... swift build --arch arm64 --arch x86_64 @subdan has already added this, but had to roll back because the release build was falling on GitHub Actions It would be a great next step to have Catbird run on arm 👍 |
On Linux,
URLSession
andURLRequest
are not inFoundation
, but inFoundationNetworking
.FoundationNetworking
has transitive dependencies that prevent compiling a static binary.Catbird uses only models from CatbirdAPI, so
URLSession
was removed from the Linux build.Swift Server Guides Packaging Applications for Deployment