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

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

View File

@@ -13,15 +13,17 @@ jobs:
run: | run: |
apt-get update apt-get update
apt-get install -y clang libicu-dev 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 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.2-RELEASE-ubuntu20.04.tar.gz tar xzf swift-5.9-RELEASE-ubuntu20.04.tar.gz
echo "SWIFT_PATH=$(pwd)/swift-5.9.2-RELEASE-ubuntu20.04/usr/bin" >> $GITHUB_ENV 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 - name: Check Swift version
run: ${{ env.SWIFT_PATH }}/swift --version run: swift --version
- name: Build - name: Build
run: ${{ env.SWIFT_PATH }}/swift build run: swift build
- name: Run tests - name: Run tests
run: ${{ env.SWIFT_PATH }}/swift test run: swift test