Skip to content

Commit

Permalink
Migrate from xcworkspace to swift package (#119)
Browse files Browse the repository at this point in the history
* use swift package instead of xcworkspace

* use docc

* concurrency fixes
  • Loading branch information
tgymnich authored Jun 27, 2024
1 parent ef1641b commit 5f01bdc
Show file tree
Hide file tree
Showing 1,058 changed files with 1,427 additions and 23,543 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docs

on:
push:
tags:
- '*'

jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Generate documentation
run: |
swift package --allow-writing-to-directory docs generate-documentation \
--target BigInt \
--disable-indexing \
--output-path docs \
--transform-for-static-hosting
- name: Commit docs
run: |
git config --local user.email "bot@github.com"
git config --local user.name "GitHub Actions"
git add ./docs
git commit -m "Update docs"
git push origin HEAD:master
29 changes: 0 additions & 29 deletions .github/workflows/jazzy.yml

This file was deleted.

38 changes: 15 additions & 23 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,36 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: swift build --build-tests
- name: Run tests
run: swift test
xcode:
runs-on: macos-latest
strategy:
matrix:
scheme: [BigInt-macOS, BigInt-iOS, BigInt-watchOS, BigInt-tvOS]
steps:
- uses: actions/checkout@v2
- name: Build
run: xcrun xcodebuild -workspace BigInt.xcworkspace -scheme ${{ matrix.scheme }}
run: swift test --parallel

linux:
container:
image: swift:${{ matrix.linux }}
runs-on: ubuntu-latest
strategy:
matrix:
linux: [bionic, xenial, focal]
linux: [focal, jammy, noble]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run: swift build --build-tests --enable-test-discovery
- name: Test
run: swift test --enable-test-discovery
codecov:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Test and generate code coverage report
run: xcrun xcodebuild -workspace BigInt.xcworkspace -scheme BigInt-macOS test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
run: swift test --enable-test-discovery --parallel

# codecov:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# - name: Test and generate code coverage report
# run: swift test --enable-code-coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
8 changes: 0 additions & 8 deletions .jazzy.yml

This file was deleted.

18 changes: 0 additions & 18 deletions BigInt.podspec

This file was deleted.

1,429 changes: 0 additions & 1,429 deletions BigInt.xcodeproj/project.pbxproj

This file was deleted.

7 changes: 0 additions & 7 deletions BigInt.xcodeproj/project.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5f01bdc

Please sign in to comment.