From 59eed697d0dbbd26f0cddb1023e4def1bfa5f663 Mon Sep 17 00:00:00 2001 From: Victor Bodinaud Date: Sun, 14 Jan 2024 21:13:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Change=20swift=20install=20metho?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index a562cf2..f0ffece 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -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