Skip to content

Commit

Permalink
1.1.1 (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews authored Dec 5, 2023
1 parent 0b5a75e commit 0ad988d
Show file tree
Hide file tree
Showing 222 changed files with 6,587 additions and 3,118 deletions.
41 changes: 41 additions & 0 deletions .github/actions/ci_xcodebuild/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: xcodebuild

inputs:
xcode_version:
required: true
xcodebuild_destination:
required: true
xcodebuild_action:
required: true

runs:
using: "composite"
steps:
- uses: maxim-lobanov/setup-xcode@v1
name: Set Xcode Version
with:
xcode-version: "${{ inputs.xcode_version }}"

- name: "Test SDK versions"
shell: bash
run: |
xcodebuild -showsdks
- name: "Xcode Build"
uses: sersoft-gmbh/xcodebuild-action@v2
with:
project: Mlem.xcodeproj
scheme: Mlem
destination: "${{ inputs.xcodebuild_destination }}"
action: "${{ inputs.xcodebuild_action }}"
result-bundle-path: build_results.xcresult

- uses: kishikawakatsumi/xcresulttool@v1
name: Publish build results
with:
path: build_results.xcresult
upload-bundles: never # Permission issues with uploading
show-passed-tests: false
if: success() || failure()
# ^ This is important because the action will be run
# even if the test fails in the previous step.
86 changes: 0 additions & 86 deletions .github/workflows/ci_build.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/ci_build_15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI - Build & Test - Xcode 15

on:
push:
branches:
- master
- dev

pull_request:
branches:
- master
- dev

jobs:
Build:
permissions: write-all
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: "./.github/actions/ci_xcodebuild"
with:
xcode_version: "15.0.1"
xcodebuild_destination: "platform=iOS Simulator,name=iPhone 14,OS=17.0.1"
xcodebuild_action: "build"

Test:
permissions: write-all
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: "./.github/actions/ci_xcodebuild"
with:
xcode_version: "15.0.1"
xcodebuild_destination: "platform=iOS Simulator,name=iPhone 14,OS=17.0.1"
xcodebuild_action: "test"
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ If you're reading this, you probably want to contribute to Mlem. Welcome! We're

This project makes use of the following tools:

[SwiftLint](https://github.com/realm/SwiftLint#swiftlint). This runs as part of the Xcode build phases.
[Swiftformat](https://github.com/nicklockwood/SwiftFormat#what-is-this). This runs as a pre-commit hook.
- Xcode 15
- [SwiftLint](https://github.com/realm/SwiftLint#swiftlint). This runs as part of the Xcode build phases.
- [Swiftformat](https://github.com/nicklockwood/SwiftFormat#what-is-this). This runs as a pre-commit hook.

In order to benefit please ensure you have [Homebrew](https://brew.sh) installed on your system and then run the following commands inside the project directory:

Expand Down
Loading

0 comments on commit 0ad988d

Please sign in to comment.