diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml new file mode 100644 index 0000000..52783de --- /dev/null +++ b/.github/workflows/docc.yml @@ -0,0 +1,40 @@ +name: docc +on: + push: + branches: ["main"] +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: pages + cancel-in-progress: true +jobs: + pages: + environment: + name: github-pages + url: '${{ steps.deployment.outputs.page_url }}' + runs-on: macos-13 + steps: + - uses: swift-actions/setup-swift@v1 + - name: git checkout + uses: actions/checkout@v3 + - name: docbuild + run: > + sudo xcode-select -s /Applications/Xcode_15.0.app; + xcodebuild docbuild -scheme FeedbackKit \ + -derivedDataPath /tmp/docbuild \ + -destination 'generic/platform=iOS'; + $(xcrun --find docc) process-archive \ + transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/FeedbackKit.doccarchive \ + --output-path docs \ + --hosting-base-path 'FeedbackKit'; + echo "" > docs/index.html; + - name: artifacts + uses: actions/upload-pages-artifact@v1 + with: + path: docs + - name: deploy + id: deployment + uses: actions/deploy-pages@v1 diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml new file mode 100644 index 0000000..1fc0047 --- /dev/null +++ b/.github/workflows/macOS.yml @@ -0,0 +1,23 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: macOS + +on: + push: + branches: ["**"] + +jobs: + build: + runs-on: macos-13 + + steps: + - uses: swift-actions/setup-swift@v1 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - uses: actions/checkout@v3 + - name: Build for release + run: swift build -v -c release + - name: Test + run: swift test -v diff --git a/Package.resolved b/Package.resolved deleted file mode 100644 index 667009f..0000000 --- a/Package.resolved +++ /dev/null @@ -1,24 +0,0 @@ -{ - "originHash" : "471843a9ff974d28ebde92edf8c9dda26f4a33cd3aa9f46b7cd7b556ef86f918", - "pins" : [ - { - "identity" : "appstate", - "kind" : "remoteSourceControl", - "location" : "https://github.com/0xLeif/AppState.git", - "state" : { - "revision" : "6d47c27b489495430d19a7e6f2d91cb407d9f2bb", - "version" : "1.16.0" - } - }, - { - "identity" : "cache", - "kind" : "remoteSourceControl", - "location" : "https://github.com/0xLeif/Cache", - "state" : { - "revision" : "a535c68aab7bf0b42bda7a5de66b04f86e48c6e6", - "version" : "2.1.0" - } - } - ], - "version" : 3 -} diff --git a/Package.swift b/Package.swift index 8691693..cf29a78 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.10 +// swift-tools-version: 5.9 import PackageDescription