Skip to content

Bump build version to 152 #278

Bump build version to 152

Bump build version to 152 #278

Workflow file for this run

name: Build
on:
pull_request:
branches:
- master
- "v**"
push:
branches:
- master
- "v**"
- "backport-**"
- "android-**"
- "ios-**"
jobs:
doctor:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-modules-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: yarn
- name: expo-doctor dependencies
run: yarn doctor
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-modules-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: yarn
- name: tsc code
run: yarn compile
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-modules-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: yarn
- name: ESLint code
run: yarn lint
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-modules-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: yarn
- name: Prettify code
run: yarn format
build:
strategy:
matrix:
os: [macos-14, ubuntu-latest]
runs-on: ${{ matrix.os }}
needs:
- doctor
- compile
- lint
- format
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Use Java 17
if: matrix.os == 'ubuntu-latest'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
packager: yarn
token: ${{ secrets.EXPO_TOKEN }}
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-modules-
- name: Cache CocoaPods
if: matrix.os == 'macos-14'
uses: actions/cache@v4
with:
path: /Users/runner/Library/Caches/CocoaPods
key: ${{ runner.os }}-build-cocoa-pods-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-cocoa-pods-
- name: Install dependencies
run: yarn
- name: Build
run: |
if [[ $(uname) == "Darwin" ]]; then
eas build --local --non-interactive --platform ios --profile preview
echo "PLATFORM=ios" >> "$GITHUB_ENV"
else
eas build --local --non-interactive --platform android --profile preview
echo "PLATFORM=android" >> "$GITHUB_ENV"
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: conch-bay-${{ env.PLATFORM }}
path: |
./*.tar.gz
./*.apk