Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chanhihi committed Mar 5, 2024
2 parents 8fa67ce + 3183b92 commit cf1d616
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ios.yml → .github/workflows/module03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,3 @@ jobs:
with:
name: module03-build-artifacts
path: Module03/build/Build/Products/*

build-weatherplus:
name: Build WeatherPlus
runs-on: macos-latest
needs: build-module03

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build WeatherPlus Project
run: |
xcodebuild build-for-testing -project WeatherApp/weatherplusproj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=Any iOS Simulator Device' -derivedDataPath './WeatherPlus/build'
- name: Upload WeatherPlus Build Artifacts
uses: actions/upload-artifact@v4
with:
name: weatherplus-build-artifacts
path: WeatherPlus/build/Build/Products/*
26 changes: 26 additions & 0 deletions .github/workflows/weatherplus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: iOS weather plus Projects Build and Artifact Workflow

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

jobs:
build-weatherplus:
name: Build WeatherPlus
runs-on: macos-11

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build WeatherPlus Project
run: |
xcodebuild build-for-testing -project WeatherApp/weatherplusproj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' -derivedDataPath './WeatherApp/build'
- name: Upload WeatherPlus Build Artifacts
uses: actions/upload-artifact@v4
with:
name: weatherplus-build-artifacts
path: WeatherApp/build/Build/Products/*

0 comments on commit cf1d616

Please sign in to comment.