Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Setup Cocoapods

Actions
Set up your GitHub Actions workflow with a specific version of Cocoapods
v1.0
Star (31)

Tags

 (1)

setup-cocoapods

This action sets up specific version of Cocoapods in GitHub Actions workflow.
Action supports two ways to specify Cocoapods version:

  • Specify particular version using version parameter
  • Specify path to the Podfile.lock file using podfile-path parameter. In this case, version of Cocoapods will be parsed from Podfile.lock.

Available parameters

Parameter name Description Supported format
version Specify version of Cocoapods to install latest, 1.5.2, 1.9.1
podfile-path Specify path to Podfile.lock file to determine Cocoapods version dynamically myApp/Podfile.lock

At the same time, only one parameter should be specified.

Usage

name: CI
on: [push]
jobs:
  build:
    name: Setup Cocoapods based on provided version
    runs-on: macos-latest
    steps:
    - name: setup-cocoapods
      uses: maxim-lobanov/setup-cocoapods
      with:
        version: 1.9.0

  build:
    name: Setup Cocoapods based on Podfile.lock
    runs-on: macos-latest
    steps:
    - name: setup-cocoapods
      uses: maxim-lobanov/setup-cocoapods
      with:
        podfile-path: myApp/Podfile.lock

License

The scripts and documentation in this project are released under the MIT License

Setup Cocoapods is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set up your GitHub Actions workflow with a specific version of Cocoapods
v1.0

Tags

 (1)

Setup Cocoapods is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.