Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build & Test

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

jobs:
build-and-test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Select Xcode 15
run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer

- name: Install XcodeGen
run: brew install xcodegen

- name: Generate Xcode project
run: xcodegen generate

- name: Build app
run: |
xcodebuild build \
-project EDFViewerMac.xcodeproj \
-scheme EDFViewerMac \
-configuration Debug \
-destination 'platform=macOS' \
CODE_SIGN_IDENTITY=- \
| xcpretty || true

- name: Run tests
run: |
xcodebuild test \
-project EDFViewerMac.xcodeproj \
-scheme EDFViewerMacTests \
-configuration Debug \
-destination 'platform=macOS' \
CODE_SIGN_IDENTITY=- \
| xcpretty || true
54 changes: 14 additions & 40 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/
*.xcscmblueprint
*.xccheckout

## Obj-C/Swift specific
*.hmap
## Build
build/
DerivedData/
.build/

## App packaging
## User settings
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
Expand All @@ -17,45 +18,18 @@ xcuserdata/
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/
# macOS
.DS_Store
*.swp
*~

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
# Swift Package Manager
Package.resolved

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
Expand Down
Loading