💚 Change swift installation
Some checks failed
Hermes CI / build (push) Failing after 4s

This commit is contained in:
Victor Bodinaud
2024-01-14 22:05:47 +01:00
parent 2e77da22c8
commit 0957e735d9

View File

@@ -12,16 +12,18 @@ jobs:
- name: Install Swift
run: |
apt-get update
apt-get install -y clang libicu-dev
wget https://download.swift.org/swift-5.9.2-release/ubuntu2004/swift-5.9.2-RELEASE/swift-5.9.2-RELEASE-ubuntu20.04.tar.gz
tar xzf swift-5.9.2-RELEASE-ubuntu20.04.tar.gz
echo "SWIFT_PATH=$(pwd)/swift-5.9.2-RELEASE-ubuntu20.04/usr/bin" >> $GITHUB_ENV
apt-get install clang libicu-dev
wget https://swift.org/builds/swift-5.9-release/ubuntu2004/swift-5.9-RELEASE/swift-5.9-RELEASE-ubuntu20.04.tar.gz
tar xzf swift-5.9-RELEASE-ubuntu20.04.tar.gz
echo "SWIFT_PATH=$PWD/swift-5.9-RELEASE-ubuntu20.04/usr/bin" >> $GITHUB_ENV
echo "$PWD/swift-5.9-RELEASE-ubuntu20.04/usr/bin" >> $GITHUB_PATH
- name: Check Swift version
run: ${{ env.SWIFT_PATH }}/swift --version
run: swift --version
- name: Build
run: ${{ env.SWIFT_PATH }}/swift build
run: swift build
- name: Run tests
run: ${{ env.SWIFT_PATH }}/swift test
run: swift test