Skip to content

Commit

Permalink
No command line option because Swift 5.7 (#61).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Aug 19, 2023
1 parent 1d51325 commit 33dcfb8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 33 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/run-tests-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
matrix:
element:
- swift: '5.7'
withStaticBigInt: false
- swift: '5.8'
withStaticBigInt: true

runs-on: ubuntu-latest
container:
Expand All @@ -26,6 +24,3 @@ jobs:
uses: actions/checkout@v3
- name: Test
run: swift test
- name: Test with StaticBigInt
if: matrix.element.withStaticBigInt
run: swift test -Xswiftc -DSBI
9 changes: 2 additions & 7 deletions .github/workflows/run-tests-on-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,15 @@ jobs:
element:
- xcode: '14.2'
machine: macos-12
withStaticBigInt: false
- xcode: '14.3'
machine: macos-13
withStaticBigInt: true

runs-on: ${{ matrix.element.machine }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode
- name: Select Xcode Version
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.element.xcode }}.app
- name: Test
run: swift test
- name: Test with StaticBigInt
if: matrix.element.withStaticBigInt
run: swift test -Xswiftc -DSBI
run: xcrun swift test
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,8 @@ Int256(5) % Int(5), UInt256(5) % UInt(5)
### Feature: StaticBigInt (v0.10.0+)

Because `StaticBigInt` [does not back-deploy][Apple/StaticBigInt/SE], it is gated
by [availability][Apple/StaticBigInt] and the compiler flag `SBI`. Setting the
constant `withStaticBigInt` to `true` in `Package.swift` enables it. Alternatively,
you can use the command line:

```
swift build -Xswiftc -DSBI
```
by [availability][Apple/StaticBigInt] and a build condition. Setting the constant
`withStaticBigInt` to `true` in `Package.swift` enables it.

> **Note**: You can use `StaticString` until `StaticBigInt` becomes available.
Expand Down
10 changes: 3 additions & 7 deletions Sources/NBKDoubleWidthKit/NBKDoubleWidth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ import NBKCoreKit
///
/// ### Feature: StaticBigInt (v0.10.0+)
///
/// Because `StaticBigInt` does not back-deploy, it is gated by availability and
/// the compiler flag `SBI`. Setting the constant `withStaticBigInt` to `true` in
/// `Package.swift` enables it. Alternatively, you can use the command line:
///
/// ```
/// swift build -Xswiftc -DSBI
/// ```
/// Because `StaticBigInt` does not back-deploy, it is gated by availability
/// and a build condition. Setting the constant `withStaticBigInt` to `true`
/// in `Package.swift` enables it.
///
/// - Note: You can use `StaticString` until `StaticBigInt` becomes available.
///
Expand Down
10 changes: 3 additions & 7 deletions Sources/Numberick/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,9 @@ Int256(5) % Int(5), UInt256(5) % UInt(5)

### Feature: StaticBigInt (v0.10.0+)

Because `StaticBigInt` does not back-deploy, it is gated by availability and
the compiler flag `SBI`. Setting the constant `withStaticBigInt` to `true` in
`Package.swift` enables it. Alternatively, you can use the command line:

```
swift build -Xswiftc -DSBI
```
Because `StaticBigInt` does not back-deploy, it is gated by availability
and a build condition. Setting the constant `withStaticBigInt` to `true`
in `Package.swift` enables it.

- Note: You can use `StaticString` until `StaticBigInt` becomes available.

Expand Down

0 comments on commit 33dcfb8

Please sign in to comment.