Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: build action #343

Merged
merged 22 commits into from
Oct 3, 2024
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
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build the SDK

permissions:
checks: write
pull-requests: write

on:
push:
branches:
- master
- staging
pull_request:
branches:
- master
- staging
jobs:
build:
runs-on: macos-${{ matrix.env.os_version }}
strategy:
fail-fast: false
matrix:
env:
[
{os_version: 14, sdk: "macosx14.5"},
{os_version: 14, sdk: "iphoneos17.5"},
{os_version: 14, sdk: "appletvos17.5"},
{os_version: 14, sdk: "watchos10.5"},
{os_version: 12, sdk: "iphoneos16.2"},
{os_version: 12, sdk: "macosx13.1"},
{os_version: 12, sdk: "appletvos16.1"},
{os_version: 12, sdk: "watchos9.1"},
{os_version: 13, sdk: "iphoneos17.2"},
{os_version: 13, sdk: "macosx14.2"},
{os_version: 13, sdk: "appletvos17.2"},
{os_version: 13, sdk: "watchos10.2"}
]
steps:
# To check the github context
- name: Checkout SDK code
uses: actions/checkout@v4

- name: Build for the sdk ${{ matrix.env.sdk }} on macOS ${{ matrix.env.os_version }}
run: xcodebuild -project Countly.xcodeproj build -sdk ${{ matrix.env.sdk }}

- name: Run the tests for the sdk ${{ matrix.env.sdk }} on macOS ${{ matrix.env.os_version }}
run: echo good #xcodebuild -project Countly.xcodeproj test -destination ${{ matrix.env.destination }} -scheme CountlyTests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Thumbs.db
Countly.xcodeproj/project.xcworkspace/
Countly.xcodeproj/xcuserdata/
.build
build
.swiftpm