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
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build (macOS)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Select latest stable Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Show Xcode version
run: xcodebuild -version

- name: Build
run: |
set -o pipefail
xcodebuild build \
-project Echo.xcodeproj \
-scheme Echo \
-configuration Debug \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
| xcbeautify
7 changes: 5 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Switch to Xcode 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app
- name: Select latest stable Xcode
if: matrix.language == 'swift'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Initialize CodeQL
uses: github/codeql-action/init@main
Expand Down
27 changes: 27 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
disabled_rules:
- trailing_whitespace
- todo

opt_in_rules:
- empty_count
- explicit_init
- first_where
- sorted_first_last
- contains_over_first_not_nil
- last_where

line_length:
warning: 140
error: 200
ignores_comments: true
ignores_urls: true

identifier_name:
excluded:
- id
- to

excluded:
- Echo.xcodeproj
- .build
- DerivedData
Loading