Skip to content

Commit

Permalink
Merge pull request #88 from readdle/feature/spm-support
Browse files Browse the repository at this point in the history
📦 SwiftPM Support
  • Loading branch information
lxbndr authored Oct 29, 2024
2 parents d5f1420 + 44c6332 commit cc487f9
Show file tree
Hide file tree
Showing 716 changed files with 12,464 additions and 220,881 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Pull Request Check

on: pull_request

defaults:
run:
shell: zsh -l {0} # Use zsh iwth login as default shell

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

jobs:

Android:
name: "mailcore2 - Android"
runs-on: macos-13

steps:
- uses: actions/checkout@v4
- name: Select XCode 14.2
run: sudo xcode-select --switch /Applications/Xcode_14.2.app
- name: Install NDK
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;25.2.9519653"
- name: Install Swift Android Toolchain
run: wget https://github.com/readdle/swift-android-toolchain/releases/latest/download/swift-android.zip;
unzip swift-android.zip;
swift-android/bin/swift-android tools --update;
- name: Install Android Emulator
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-29;google_apis;x86_64"
- name: Run connected android tests
run: export ANDROID_NDK_ROOT_25C=$ANDROID_HOME/ndk/25.2.9519653;
export SWIFT_ANDROID_HOME_5_7=$(pwd)/swift-android;
./build-scripts/test-android.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - Android - Report
detailed_summary: true
include_passed: true

Darwin:
name: "mailcore2 - ${{ matrix.os }}"
runs-on: macos-latest
timeout-minutes: 60

strategy:
matrix:
os: [macOS, iOS]
include:
- os: macOS
os_lowercased: macos
- os: iOS
os_lowercased: ios

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
run: ./build-scripts/test-${{ matrix.os_lowercased }}.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - ${{ matrix.os }} - Report
detailed_summary: true
include_passed: true
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ cocoapods-build
*.aar
.build
.vs
Package.resolved


LinuxMain.swift
third-party
test.log
junit.xml
.build-ios
ndk-stack.log
43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "ctemplate",
"repositoryURL": "https://github.com/readdle/ctemplate.git",
"state": {
"branch": null,
"revision": "a56e2d43eb57dc1e132a96f0fd9e4df198d1c35b",
"version": "2.2.3-readdle.4"
}
},
{
"package": "etpan",
"repositoryURL": "https://github.com/readdle/libetpan.git",
"state": {
"branch": null,
"revision": "68a9583bb8022f75992e7ebb7956e8bd7197e867",
"version": "1.9.3-readdle.5"
}
},
{
"package": "unicode",
"repositoryURL": "https://github.com/readdle/swift-unicode",
"state": {
"branch": null,
"revision": "fb8aac372834ccb8fab0a5c1742df862d47c4156",
"version": "68.2.0"
}
},
{
"package": "RDHtml5Tidy",
"repositoryURL": "https://github.com/readdle/tidy-html5.git",
"state": {
"branch": null,
"revision": "fa68a7e0ebdc4deab6de668c85a8d8ccf2fb5b19",
"version": "5.4.0-readdle.28"
}
}
]
},
"version": 1
}
Loading

0 comments on commit cc487f9

Please sign in to comment.