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

Migrate from xcworkspace to swift package #119

Merged
merged 3 commits into from
Jun 27, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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 "[email protected]"
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