Skip to content

Commit

Permalink
chore: update build machine to macos-latest (#208)
Browse files Browse the repository at this point in the history
* chore: update build machine to macos-latest

* chore: add carthage install step

* Update .github/workflows/ios.yaml

Co-authored-by: Jamie Sinn <[email protected]>

* chore: try and fix carthage

* chore: try new carthage-bootstrap version

* chore: add which carthage back

* chore: try Add homebrew to PATH

* chore: try adding env

* chore: fix setting path

* chore: add debug

* chore: try another change

* chore: revert changes and try new branch

* chore: new run

* chore: new branch

* chore: fix action path

* chore: update all builds

---------

Co-authored-by: Jamie Sinn <[email protected]>
  • Loading branch information
jonathannorris and JamieSinn authored Dec 19, 2024
1 parent ca08da3 commit a23ea72
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.AUTOMATION_USER_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ on:

jobs:
build:
runs-on: macos-13-large
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: 'Select Latest Xcode'

- name: "Select Latest Xcode"
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: 'Carthage Cached Bootstrap'
uses: DevCycleHQ/carthage-bootstrap@xcframeworks2

- name: "Carthage Cached Bootstrap"
uses: DevCycleHQ/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.AUTOMATION_USER_TOKEN }}
use-xcframeworks: true

- name: Fastlane iOS Tests
run: fastlane ios tests
10 changes: 7 additions & 3 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ on:

jobs:
build:
runs-on: macos-13-large
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4

- name: Setup Fastlane Auth
run: echo "FASTLANE_GIT_BASIC_AUTHORIZATION=$(echo -n taplytics-robot:${{ secrets.AUTOMATION_USER_TOKEN }} | base64)" >> "$GITHUB_ENV"

- name: "Select Latest Xcode"
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: 'Carthage Cached Bootstrap'
uses: DevCycleHQ/carthage-bootstrap@xcframeworks2

- name: "Carthage Cached Bootstrap"
uses: DevCycleHQ/[email protected]
with:
github-token: ${{ secrets.AUTOMATION_USER_TOKEN }}
use-xcframeworks: true

- name: Fastlane macOS Tests
run: fastlane mac tests
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish-pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
publish-cocoapods:
runs-on: macos-13
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -27,4 +27,3 @@ jobs:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push DevCycle.podspec --allow-warnings --verbose
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ on:
workflow_dispatch:
inputs:
prerelease:
description: 'Prerelease'
description: "Prerelease"
required: true
default: false
type: boolean
draft:
description: 'Draft'
description: "Draft"
required: true
default: false
type: boolean
version-increment-type:
description: 'Which part of the version to increment:'
description: "Which part of the version to increment:"
required: true
type: choice
options:
- major
- minor
- patch
default: 'patch'
default: "patch"

permissions:
contents: write
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- uses: DevCycleHQ/release-action/[email protected]
id: create-release
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.AUTOMATION_USER_TOKEN }}
tag: ${{ steps.prepare-release.outputs.next-release-tag }}
target: main
prerelease: ${{ github.event.inputs.prerelease }}
Expand All @@ -79,4 +79,3 @@ jobs:
run: |
echo "::notice title=Release ID::${{ steps.create-release.outputs.release-id }}"
echo "::notice title=Release URL::${{ steps.create-release.outputs.release-url }}"
11 changes: 7 additions & 4 deletions .github/workflows/tvos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: Build and Test tvOS

on:
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: macos-13-large
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4

- name: "Select Latest Xcode"
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: "Carthage Cached Bootstrap"
uses: DevCycleHQ/carthage-bootstrap@xcframeworks2
uses: DevCycleHQ/carthage-bootstrap@v1.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.AUTOMATION_USER_TOKEN }}
use-xcframeworks: true

- name: Fastlane tvOS Tests
run: fastlane tvos tests
11 changes: 7 additions & 4 deletions .github/workflows/watchos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: Build and Test watchOS

on:
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: macos-13-large
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4

- name: "Select Latest Xcode"
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: "Carthage Cached Bootstrap"
uses: DevCycleHQ/carthage-bootstrap@xcframeworks2
uses: DevCycleHQ/carthage-bootstrap@v1.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.AUTOMATION_USER_TOKEN }}
use-xcframeworks: true

- name: Fastlane watchOS Tests
run: fastlane watchos tests

0 comments on commit a23ea72

Please sign in to comment.