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
10 changes: 5 additions & 5 deletions .github/workflows/deploy_docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: macos-12
runs-on: macos-15

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Build DocC
run: |
Expand All @@ -38,10 +38,10 @@ jobs:
--output-path docs;

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: build

# Controls when the action will run.
on:
push:
branches:
Expand All @@ -13,15 +12,12 @@ on:
jobs:
build:
name: Build and Test project
runs-on: macos-13
runs-on: macos-15
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Init
run: |
make init
- name: Force xcode 14.3.1
run: |
sudo xcode-select -switch /Applications/Xcode_14.3.1.app
- name: Build
run: |
make build
Expand All @@ -33,4 +29,4 @@ jobs:
make test
- name: Example Build
run: |
make example_build
make example_build
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

init:
# Install bundler if not installed
if ! gem spec bundler > /dev/null 2>&1; then\
echo "bundler gem is not installed!";\
-sudo gem install bundler -v "1.17.3";\
fi
-bundle config set --local path '.bundle'
-bundle update
bundle config set --local path '.bundle'
bundle install

build:
xcodebuild clean build -scheme DebugScreen -sdk iphonesimulator | bundle exec xcpretty -c

spm_build:
swift package clean
swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios15.5-simulator" -Xswiftc "-lswiftUIKit"
swift build \
-Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" \
-Xswiftc "-target" -Xswiftc "arm64-apple-ios`xcrun --sdk iphonesimulator --show-sdk-version`-simulator" \
-Xcc "-isysroot" -Xcc "`xcrun --sdk iphonesimulator --show-sdk-path`" \
-Xcc "-target" -Xcc "arm64-apple-ios`xcrun --sdk iphonesimulator --show-sdk-version`-simulator" \
-Xswiftc "-lswiftUIKit"

test:
xcodebuild test -scheme DebugScreen -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.5' | bundle exec xcpretty -c
xcodebuild test -scheme DebugScreen -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' | bundle exec xcpretty -c

example_build:
xcodebuild clean build -scheme DebugScreenExample -sdk iphonesimulator | bundle exec xcpretty -c
Expand Down