Skip to content

Commit 84e3577

Browse files
herlandrofreak4pc
authored andcommitted
Re-enabled Linux tests with Swift 5.5 installation
1 parent bbc392b commit 84e3577

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,25 @@ jobs:
2929
# Even more hopefully that I won't git blame this comment in the future and see it was 5 years ago :)
3030
# Some more info on part of the breakage is here: https://forums.swift.org/t/swift-6-0-regression-cannot-inherit-from-some-foundation-classes-on-linux-because-it-has-overridable-members-that-could-not-be-loaded/74794
3131

32-
# linux:
33-
# name: "Test (Linux)"
34-
# runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
35+
# Install Swift 5.5 in the Linux environment
36+
- name: Install Swift 5.5
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y curl libssl-dev
40+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
41+
echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> ~/.bashrc
42+
echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> ~/.bashrc
43+
echo 'eval "$(swiftenv init -)"' >> ~/.bashrc
44+
export SWIFTENV_ROOT="$HOME/.swiftenv"
45+
export PATH="$SWIFTENV_ROOT/bin:$PATH"
46+
eval "$(swiftenv init -)"
47+
swiftenv install 5.5
48+
swiftenv global 5.5
49+
swift --version
3550
36-
# steps:
37-
# - uses: actions/checkout@v3
38-
# - name: Run tests
39-
# run: CI=1 ./scripts/all-tests.sh "Unix"
51+
# Run tests in the Unix/Linux environment
52+
- name: Run tests
53+
run: CI=1 ./scripts/all-tests.sh "Unix"

0 commit comments

Comments
 (0)