File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 12
12
- ' Dockerfile.i386'
13
13
- ' Dockerfile.armhf'
14
14
- ' Dockerfile.arm64'
15
+ - ' Dockerfile.osx-x64'
16
+ - ' Dockerfile.osx-arm64'
15
17
16
18
jobs :
17
19
build :
26
28
dockerfile : Dockerfile.armhf
27
29
- tag : arm64
28
30
dockerfile : Dockerfile.arm64
31
+ - tag : osx-x64
32
+ dockerfile : Dockerfile.osx-x64
33
+ - tag : osx-arm64
34
+ dockerfile : Dockerfile.osx-arm64
29
35
runs-on : ubuntu-latest
30
36
steps :
31
37
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change
1
+ FROM jetbrains/teamcity-minimal-agent:latest
2
+
3
+ # This is important for using apt-get
4
+ USER root
5
+
6
+ # Install cross-build dependencies
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends ca-certificates subversion ncftp \
9
+ git autoconf wget make patch cmake clang llvm-dev uuid-dev libssl-dev lzma-dev libxml2-dev python3
10
+
11
+ # Prepare cross-build environment
12
+ ENV MACOSX_DEPLOYMENT_TARGET=11.0 \
13
+ PATH="${PATH}:/opt/osxcross/bin" \
14
+ OSXCROSS_MP_INC=1
15
+
16
+ RUN mkdir -p /opt/osxcross && \
17
+ git clone https://github.com/tpoechtrager/osxcross.git /opt/osxcross/setup_files && \
18
+ cd /opt/osxcross/setup_files && \
19
+ wget -P tarballs https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz && \
20
+ UNATTENDED=1 TARGET_DIR=/opt/osxcross ./build.sh && \
21
+ UNATTENDED=1 ../bin/osxcross-macports install --arm64 mysql8 libidn2
22
+
23
+ # Default build configuration
24
+ ENV AS_BUILDAGENT=0 \
25
+ BUILD_ARCHITECTURE=arm64 \
26
+ BUILD_CONFIG=release \
27
+ AR=arm64-apple-darwin20.4-ar \
28
+ CC=arm64-apple-darwin20.4-clang \
29
+ CXX=arm64-apple-darwin20.4-clang++
30
+
31
+ # Set build directory
32
+ VOLUME /build
33
+ WORKDIR /build
34
+
35
+ # Copy entrypoint script
36
+ COPY utils/docker-entrypoint-osx.sh /docker-entrypoint.sh
37
+
38
+ # Set entrypoint
39
+ ENTRYPOINT /docker-entrypoint.sh
File renamed without changes.
You can’t perform that action at this time.
0 commit comments