Skip to content

Commit d19f601

Browse files
Merge remote-tracking branch 'origin/main' into chore/add-joins-test
2 parents 576a3c8 + 2de1a47 commit d19f601

File tree

97 files changed

+6506
-811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6506
-811
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: Set up XCode
14+
uses: maxim-lobanov/setup-xcode@v1
15+
with:
16+
xcode-version: latest-stable
1317
- name: Build and Test
1418
run: |
15-
xcodebuild test -scheme PowerSync -destination "platform=iOS Simulator,name=iPhone 15"
19+
xcodebuild test -scheme PowerSync -destination "platform=iOS Simulator,name=iPhone 16"
20+
xcodebuild test -scheme PowerSync -destination "platform=macOS,arch=arm64,name=My Mac"
21+
xcodebuild test -scheme PowerSync -destination "platform=watchOS Simulator,arch=arm64,name=Apple Watch Ultra 2 (49mm)"

.github/workflows/docs.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: macos-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build Docs
18+
run: |
19+
xcodebuild docbuild \
20+
-scheme PowerSync \
21+
-destination 'platform=macOS' \
22+
-derivedDataPath ./DerivedData \
23+
-configuration Release
24+
25+
- name: Process Docs
26+
run: |
27+
xcrun docc process-archive \
28+
transform-for-static-hosting \
29+
./DerivedData/Build/Products/Release/PowerSync.doccarchive/ \
30+
--output-path ./docs-site \
31+
--hosting-base-path /powersync-swift
32+
33+
# The Docs are available at the path mentioned below. We can override the index.html to automatically redirect to the documentation page.
34+
- name: Prepare static files
35+
run: |
36+
echo '<script>window.location.href += "/documentation/powersync"</script>' > ./docs-site/index.html
37+
38+
- name: Upload static files as artifact
39+
id: deployment
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: docs-site
43+
outputs:
44+
page_url: ${{ steps.deployment.outputs.page_url }}
45+
46+
# Deployment job
47+
deploy:
48+
if: ${{ github.ref == 'refs/heads/main' }}
49+
environment:
50+
name: github-pages
51+
url: ${{ needs.build.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version number (e.g., 1.0.0 or 1.0.0-Beta.1)'
7+
description: "Version number (e.g., 1.0.0 or 1.0.0-Beta.1)"
88
required: true
99
type: string
1010
release_notes:
11-
description: 'Release notes'
11+
description: "Release notes"
1212
required: true
1313
type: string
1414

@@ -45,14 +45,14 @@ jobs:
4545
4646
- name: Create Git tag
4747
run: |
48-
git tag v${{ github.event.inputs.version }}
49-
git push origin v${{ github.event.inputs.version }}
48+
git tag ${{ github.event.inputs.version }}
49+
git push origin ${{ github.event.inputs.version }}
5050
5151
- name: Create GitHub Release
5252
uses: ncipollo/release-action@v1
5353
with:
54-
tag: v${{ github.event.inputs.version }}
55-
name: PowerSync v${{ github.event.inputs.version }}
54+
tag: ${{ github.event.inputs.version }}
55+
name: PowerSync ${{ github.event.inputs.version }}
5656
body: ${{ github.event.inputs.release_notes }}
5757
draft: false
5858
prerelease: ${{ steps.version_check.outputs.is_prerelease }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ DerivedData/
6969
.swiftpm/configuration/registries.json
7070
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
7171
.netrc
72+
73+
74+
Secrets.swift

0 commit comments

Comments
 (0)