This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Other images #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BookieJobs | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/setup-xcode@v1.6.0 | |
with: | |
xcode-version: 16.2 | |
- name: Install Mint | |
run: brew install mint | |
- name: Cache Mint modules | |
id: cache-mint | |
uses: actions/cache@v4.2.3 | |
env: | |
cache-name: cache-mint-modules | |
with: | |
path: ~/.mint | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Mintfile') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- if: ${{ steps.cache-mint.outputs.cache-hit != 'true' }} | |
name: List the state of Mint modules | |
continue-on-error: true | |
run: mint list | |
- name: Folder for swiftgen | |
run: mkdir Bookie/Generated && touch Bookie/Generated/Strings.swift | |
- name: Generate Xcode project | |
run: mint bootstrap && mint run xcodegen | |
- name: Build and test iOS | |
run: xcodebuild test -project Bookie.xcodeproj -scheme BookieApp -destination "platform=iOS Simulator,OS=17.0.1,name=iPhone 15" |