💚 Change swift install method
Some checks failed
Hermes CI / build (push) Failing after 2s

This commit is contained in:
Victor Bodinaud
2024-01-14 21:13:32 +01:00
parent 378fdf3d56
commit 59eed697d0

View File

@@ -7,10 +7,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Swift
uses: https://github.com/swift-actions/setup-swift@v1
- name: Check out code
uses: actions/checkout@v4
- name: Install Swift
run: |
sudo apt-get update
sudo 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
- name: Build
run: swift build
run: ${{ env.SWIFT_PATH }}/swift build
- name: Run tests
run: swift test
run: ${{ env.SWIFT_PATH }}/swift test