diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 49d8e857..88424dcb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -70,34 +70,9 @@ jobs: with: terraform_version: "1.5.0" terraform_wrapper: false - - name: Install Swift with swiftly (macOS) - if: runner.os == 'macOS' - run: | - echo "=== Installing swiftly on macOS ===" - curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \ - installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \ - ~/.swiftly/bin/swiftly init --quiet-shell-followup && \ - . "${SWIFTLY_HOME_DIR:-$HOME/.swiftly}/env.sh" && \ - hash -r - swiftly install --use 6.1.2 - swiftly use 6.1.2 - echo "~/.swiftly/bin" >> $GITHUB_PATH - echo "Swiftly installed successfully" - - name: Install Swift with swiftly (Ubuntu) - if: runner.os == 'Linux' - run: | - echo "=== Installing swiftly on Ubuntu ===" - curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \ - tar zxf swiftly-$(uname -m).tar.gz && \ - ./swiftly init --quiet-shell-followup && \ - . "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" && \ - hash -r - swiftly install --use 6.1.2 - swiftly use 6.1.2 - sudo apt-get -y install libcurl4-openssl-dev - echo "=== Adding Swift toolchain to PATH ===" - echo "$HOME/.local/share/swiftly/bin" >> $GITHUB_PATH - echo "Swiftly installed successfully!" + - name: Install swift + if: runner.os != 'Windows' + uses: swift-actions/setup-swift@v2 - name: Install Ruby uses: ruby/setup-ruby@v1 with: