Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error decompressing Swift download #138

Open
moubry opened this issue May 27, 2023 · 0 comments
Open

Error decompressing Swift download #138

moubry opened this issue May 27, 2023 · 0 comments

Comments

@moubry
Copy link

moubry commented May 27, 2023

For this workflow file:

name: Swift

on:
  pull_request:
    paths:
      - '.github/workflows/main.yml'
      - '.swiftlint.yml'
      - '**/*.swift'

jobs:
  SwiftAndSwiftLint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: sinoru/actions-setup-swift@v2
        with:
          swift-version: 'latest'
      - name: GitHub Actions for SwiftLint
        uses: sinoru/actions-swiftlint@v6
      - uses: sinoru/actions-swift@v1
        with:
          swift-image-tag: 'latest'
          args: 'build'
      - uses: sinoru/actions-swift@v1
        with:
          swift-image-tag: 'latest'
          args: 'test'

I'm getting this error:

Install swift
  /usr/bin/bash -c swiftenv install -s latest
  Downloading https://download.swift.org/swift-latest-release/ubuntu2204/swift-latest-RELEASE/swift-latest-RELEASE-ubuntu22.04.tar.gz
  /tmp/swiftenv-latest-runner ~/work/chat-ios/chat-ios
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100   297  100   297    0     0    611      0 --:--:-- --:--:-- --:--:--   612
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100   257  100   257    0     0    334      0 --:--:-- --:--:-- --:--:--  1093
  
  100   146  100   146    0     0    118      0  0:00:01  0:00:01 --:--:--   118
  
  gzip: stdin: not in gzip format
  tar: Child returned status 1
  tar: Error is not recoverable: exiting now
  Error: The process '/usr/bin/bash' failed with exit code 2

It seems to be failing at the inoru/actions-setup-swift@v2 because it's getting the download in an unexpected format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant