From c04eb64f76b0746b0f1818c99ad6cfd47030639b Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:19:11 +0000 Subject: [PATCH 1/2] Migrate to github actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 24 ------------------------ 2 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..d34cb438 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + include: + - osx_image: xcode10.2 + env: SWIFT=5.0 BUILD_SDK=iphonesimulator12.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode10.2 + env: SWIFT=4.3 BUILD_SDK=iphonesimulator12.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode10.1 + env: SWIFT=4.2 BUILD_SDK=iphonesimulator12.1 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode9.2 + env: SWIFT=4.0 BUILD_SDK=iphonesimulator11.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode9.4 + env: SWIFT=4.1 BUILD_SDK=iphonesimulator11.4 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode9.4 + env: SWIFT=3.3 BUILD_SDK=iphonesimulator11.4 DESTINATION="platform=iOS Simulator,name=iPhone 8" + - osx_image: xcode8.3 + env: SWIFT=3.1 BUILD_SDK=iphonesimulator10.3 DESTINATION="platform=iOS Simulator,name=iPhone 7" + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.5 + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Install bundler + run: gem install bundler + - name: Run rake ci + run: bundle exec rake ci + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a6b4bc67..00000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: objective-c -xcode_project: SkyFloatingLabelTextField/SkyFloatingLabelTextField.xcodeproj -xcode_scheme: SkyFloatingLabelTextField -before_install: - - gem install bundler -script: - - bundle exec rake ci -matrix: - include: - - osx_image: xcode10.2 - env: SWIFT=5.0 BUILD_SDK=iphonesimulator12.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode10.2 - env: SWIFT=4.3 BUILD_SDK=iphonesimulator12.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode10.1 - env: SWIFT=4.2 BUILD_SDK=iphonesimulator12.1 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode9.2 - env: SWIFT=4.0 BUILD_SDK=iphonesimulator11.2 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode9.4 - env: SWIFT=4.1 BUILD_SDK=iphonesimulator11.4 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode9.4 - env: SWIFT=3.3 BUILD_SDK=iphonesimulator11.4 DESTINATION="platform=iOS Simulator,name=iPhone 8" - - osx_image: xcode8.3 - env: SWIFT=3.1 BUILD_SDK=iphonesimulator10.3 DESTINATION="platform=iOS Simulator,name=iPhone 7" - From 8c41ca70dec366c15c4790e42f93a408fd8bada3 Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:51:18 +0000 Subject: [PATCH 2/2] Use newer ruby action --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d34cb438..254f950e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 # Sets ruby version via `.ruby-version` with: - ruby-version: 2.6.5 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Install bundler run: gem install bundler