Skip to content

Commit

Permalink
turn off ios build
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnmclean committed Aug 29, 2024
1 parent fb4e529 commit e05d11b
Showing 1 changed file with 71 additions and 70 deletions.
141 changes: 71 additions & 70 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,73 +68,74 @@ jobs:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: cd apps/sovoli.com && pnpm deploy:trigger-prod

build-for-IOS:
name: Build for iOS
needs: build
runs-on: macos-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}-build-ios
cancel-in-progress: true
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
permissions:
contents: read
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in action caches
actions: write
steps:
- name: πŸ— Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
with:
version: 9

- name: πŸ— Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: πŸ— Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

# - name: Copy env
# shell: bash
# run: cp .env.example .env

- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: πŸ“¦ Install dependencies
run: pnpm install

- name: EAS Build
run: cd apps/mobile && eas build -p ios --profile preview --local --output build.ipa --non-interactive
env:
NODE_ENV: production

- name: πŸš€ Update Mobile
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: cd apps/mobile && eas update --auto --non-interactive

- name: πŸš€ Preview Mobile
if: github.event_name == 'pull_request'
uses: expo/expo-github-action/preview@v8
id: preview
with:
command: eas update --auto --non-interactive
working-directory: apps/mobile
comment: true
# turn off for now until we can get the expo action working
# build-for-IOS:
# name: Build for iOS
# needs: build
# runs-on: macos-latest
# concurrency:
# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}-build-ios
# cancel-in-progress: true
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
# permissions:
# contents: read
# # REQUIRED: Allow comments of PRs
# pull-requests: write # Allow comments on PRs
# # REQUIRED: Allow updating fingerprint in action caches
# actions: write
# steps:
# - name: πŸ— Check out code
# uses: actions/checkout@v4
# with:
# fetch-depth: 2

# - uses: pnpm/action-setup@v3
# with:
# version: 9

# - name: πŸ— Cache turbo build setup
# uses: actions/cache@v4
# with:
# path: .turbo
# key: ${{ runner.os }}-turbo-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-turbo-

# - name: πŸ— Setup Node.js environment
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: "pnpm"

# # - name: Copy env
# # shell: bash
# # run: cp .env.example .env

# - name: πŸ— Setup EAS
# uses: expo/expo-github-action@v8
# with:
# eas-version: latest
# token: ${{ secrets.EXPO_TOKEN }}

# - name: πŸ“¦ Install dependencies
# run: pnpm install

# - name: EAS Build
# run: cd apps/mobile && eas build -p ios --profile preview --local --output build.ipa --non-interactive
# env:
# NODE_ENV: production

# - name: πŸš€ Update Mobile
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# run: cd apps/mobile && eas update --auto --non-interactive

# - name: πŸš€ Preview Mobile
# if: github.event_name == 'pull_request'
# uses: expo/expo-github-action/preview@v8
# id: preview
# with:
# command: eas update --auto --non-interactive
# working-directory: apps/mobile
# comment: true

0 comments on commit e05d11b

Please sign in to comment.