File tree 1 file changed +10
-9
lines changed
.github/actions/install-swift
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- name : ' Install Swift'
2
- description : ' Installs the Swift specified by a .swift-version file'
1
+ name : Install Swift
2
+ description : Installs the Swift specified by a .swift-version file
3
3
4
4
runs :
5
5
using : " composite"
6
6
steps :
7
- - name : Install apt dependencies
7
+ - name : Install ` apt` Dependencies
8
8
shell : bash
9
9
run : |
10
10
SUDO=$(if [[ $EUID -ne 0 ]]; then echo sudo; fi)
11
11
$SUDO apt-get -qq update
12
- $SUDO apt-get -qq -y install curl gpg binutils git unzip gnupg2 \
13
- libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev \
14
- libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config \
15
- tzdata zlib1g-dev
12
+ $SUDO apt-get -qq -y install curl gpg
16
13
env :
17
14
DEBIAN_FRONTEND : noninteractive
18
15
@@ -31,13 +28,17 @@ runs:
31
28
32
29
curl -O "https://download.swift.org/swiftly/linux/swiftly-$UNAME.tar.gz"
33
30
tar zxf "swiftly-$UNAME.tar.gz"
34
- ./swiftly init --skip-install --assume-yes --quiet-shell-followup
31
+ ./swiftly init \
32
+ --skip-install \
33
+ --assume-yes \
34
+ --quiet-shell-followup \
35
+ --no-modify-profile
35
36
36
37
echo "PATH=$SWIFTLY_BIN_DIR:$PATH" >> $GITHUB_ENV
37
38
echo "PATH=\$SWIFTLY_BIN_DIR:\$PATH" >> $HOME/.bashrc
38
39
39
40
- name : Install Swift
40
41
shell : bash
41
42
run : |
42
- swiftly install
43
+ swiftly install --post-install-file ./out.sh
43
44
swift --version
You can’t perform that action at this time.
0 commit comments