File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,14 @@ jobs:
91
91
92
92
ARTIFACT_EXT=".artifactbundle.tar.gz"
93
93
ARTIFACT_NAME="$(basename ${ARTIFACT_PATH} ${ARTIFACT_EXT})"
94
+ # depending on whether we are building locally or in a container, add a maker to the name
95
+ if [[ "${{ matrix.build-type }}" == 'local' ]]; then
96
+ ARTIFACT_NAME="${ARTIFACT_NAME}-local"
97
+ fi
94
98
# artifacts need a unique name so we suffix with the matrix arch(s)
95
99
if [[ ! -z "${{ matrix.arch }}" ]]; then
96
100
ARTIFACT_NAME="${ARTIFACT_NAME}-$(echo ${{ matrix.arch }} | tr ',' '-')"
97
101
fi
98
- if [[ "${{ matrix.build-type }}" == 'local' ]]; then
99
- ARTIFACT_NAME="${ARTIFACT_NAME}-$(echo ${{ matrix.arch }} | tr ',' '-')-local"
100
- fi
101
102
ARTIFACT_NAME="${ARTIFACT_NAME}${ARTIFACT_EXT}"
102
103
103
104
# There is no way to prevent even a single-file artifact from being zipped:
Original file line number Diff line number Diff line change 6
6
7
7
FROM ubuntu:24.04
8
8
9
- # Versions to fetch
10
-
11
- ARG SWIFT_VERSION=scheme:release/6.2
12
- ARG LIBXML2_VERSION=2.12.7
13
- ARG CURL_VERSION=8.7.1
14
- ARG BORINGSSL_VERSION=fips-20220613
15
- ARG ICU_VERSION=maint/maint-69
16
- ARG ZLIB_VERSION=1.3.1
17
-
18
9
# Architecture to build on (empty means x86-64)
19
10
ARG OS_ARCH_SUFFIX=
20
11
@@ -82,6 +73,8 @@ ENV SWIFT_VERSION=$SWIFT_VERSION \
82
73
ICU_VERSION=$ICU_VERSION \
83
74
ZLIB_VERSION=$ZLIB_VERSION
84
75
76
+ ENV SWIFT_BUILD_DOCKER="1"
77
+
85
78
COPY scripts /scripts
86
79
RUN chmod ugo+x /scripts/*
87
80
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ $DOCKER build --build-arg OS_ARCH_SUFFIX=$OS_ARCH_SUFFIX --build-arg SWIFT_TOOLC
49
49
50
50
$DOCKER run -i --rm \
51
51
-v ${WORKDIR} /source:/source \
52
- -v ${WORKDIR} /products:/products \
52
+ -v ${WORKDIR} /products:/products:rw \
53
53
${CONTAINER_NAME} \
54
54
/scripts/build.sh \
55
55
--source-dir /source \
Original file line number Diff line number Diff line change 168
168
# Find the version numbers of the various dependencies
169
169
function describe {
170
170
pushd $1 > /dev/null 2>&1
171
+ # this is needed for docker containers or else we get the error:
172
+ # fatal: detected dubious ownership in repository at '/source/curl'
173
+ if [[ " ${SWIFT_BUILD_DOCKER} " == " 1" ]]; then
174
+ git config --global --add safe.directory $( pwd)
175
+ fi
171
176
git describe --tags
172
177
popd > /dev/null 2>&1
173
178
}
You can’t perform that action at this time.
0 commit comments