Skip to content

Commit

Permalink
setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jun 21, 2024
1 parent f012b94 commit 74d1730
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_to_cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: deploy_to_cocoapods

on:
push:
tags:
- '*'

jobs:
build:
runs-on: macos-12

steps:
- uses: actions/checkout@v1

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on:
push:
branches: [ "main" ]
pull_request:

jobs:
build:
name: Run lint
runs-on: macos-12
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v3
- run: pod spec lint LibXMTP.podspec --allow-warnings
2 changes: 1 addition & 1 deletion LibXMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'XMTP Labs' => '[email protected]' }

s.platform = :ios, '13.0', :macos, '11.0'
s.platform = :ios, '14.0', :macos, '11.0'
s.swift_version = '5.3'

s.source = { :http => "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-43e21e0/LibXMTPSwiftFFI.zip", :type => :zip }
Expand Down

0 comments on commit 74d1730

Please sign in to comment.