Skip to content

Commit d14a045

Browse files
Update CI publish job
Use a fixed swift version for building Escape
1 parent eff3d00 commit d14a045

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.circleci/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ jobs:
118118
xcode: "12.3.0"
119119
steps:
120120
- checkout
121+
- run: git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
122+
- run: echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> $BASH_ENV
123+
- run: echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> $BASH_ENV
124+
- run: echo 'eval "$(swiftenv init -)"' >> $BASH_ENV
125+
- run: swiftenv install 5.0.3 && swiftenv global 5.0.3
121126
- run: git clone https://InstabugCI:[email protected]/Instabug/Escape.git
122127
- run: cd Escape; swift build -c release -Xswiftc -static-stdlib
123128
- run: cd Escape/.build/release; cp -f Escape /usr/local/bin/escape
@@ -140,17 +145,18 @@ workflows:
140145
filters:
141146
branches:
142147
only: master
143-
- publish:
148+
- release:
144149
context: cross-platform
145150
requires:
146151
- hold
147152
filters:
148153
branches:
149154
only: master
150-
- release:
155+
- publish:
151156
context: cross-platform
152157
requires:
153158
- hold
159+
- release
154160
filters:
155161
branches:
156162
only: master

0 commit comments

Comments
 (0)