Skip to content

Edit path CICD

Edit path CICD #21

Workflow file for this run

name: Build Master Branch
on:
workflow_call:
secrets:
token:
required: true
push:
branches:
- "master"
jobs:
build:
name: Enviroment ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]
swift: ["5.9"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache Swift dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Set Swift Version
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Build
run: swift build
deploytococoapods:
name: Deploy to CocoaPods
needs: build
# Reuseable run on os of build job
# Mac Lastest
runs-on: macos-14
steps:
# Call deploycocoadpod.yml
- name: Deploy CocoaPods
uses: ./.github/workflows/deploycocoapods.yml@master