Commit Graph

868 Commits

Author SHA1 Message Date
JP Simard ccecd39216
Add empty changelog section 2020-12-11 14:16:37 -05:00
JP Simard 1bce5b89a1
Release 4.0.3 2020-12-11 13:40:06 -05:00
Brennan Stehling bfed0a6b2c
Update Xcode project to Swift 5.0 (#291)
* enables `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER`
* updates Xcode version to 12.2
2020-12-11 10:38:07 -08:00
JP Simard 1f6c419020
Add empty changelog section 2020-12-09 09:53:01 -05:00
JP Simard 51ef46468f
Release 4.0.2 2020-12-09 09:29:30 -05:00
Max Desiatov 8de82e8819
Add support for Apple Silicon in SwiftSupport.cmake (#293) 2020-12-08 14:32:12 -08:00
JP Simard e925a7ea9f
Add empty changelog section 2020-11-11 11:51:09 -05:00
JP Simard 138cf1b701
Release 4.0.1 2020-11-11 11:37:00 -05:00
JP Simard 3824257669
Fix SwiftLint violations (#290) 2020-11-11 08:27:27 -08:00
JP Simard 16556d47f3
Add 5.3 to supported Swift versions in Yams.podspec (#289) 2020-11-11 08:10:59 -08:00
JP Simard 27bbb8ddd0
Simplify imports in Representer.swift (#288)
* Simplify imports in Representer.swift

* Update Xcode versions available on CI

From https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
2020-11-11 07:42:14 -08:00
JP Simard 89b3e7ffdc
Add changelog entry for fixed compiler errors
when compiling using Swift For TensorFlow or Windows.
2020-11-11 10:07:36 -05:00
JP Simard 928212af4f
[CI] Re-enable all passing Windows tests (#286) 2020-11-04 10:01:04 -08:00
JP Simard dec7ca2639
[CI] Use environment files for Windows SwiftPM job (#285)
To avoid being vulnerable to [CVE-2020-15228](https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w).
2020-11-03 14:25:10 -08:00
JP Simard 5e136d813d
[CI] Update Xcode & Swift versions (#283) 2020-11-03 13:51:49 -08:00
JP Simard d295df97a8
[Docs] Add "Updating CI Jobs" section to CONTRIBUTING.md (#284) 2020-11-03 13:49:49 -08:00
JP Simard 22ca2a42cc
Add Windows CI job (#282) 2020-11-03 13:12:40 -08:00
Saleem Abdulrasool 682d4985e3
Yams: add an alias to explicitly dispatch `pow` (#281)
We must disambiguate `Double.pow(_: Double, _: Double) -> Double` and
`__C.pow(_: Double, _: Double) -> Double` as the Swift for TensorFlow
branch adds the former into the standard library.  The explicit module
dispatch ensures that we make the overload resolution unambiguous
allowing building Yams.
2020-10-26 09:01:08 -07:00
Saleem Abdulrasool ae37c14e9a
Yams: replace use of `MSVCRT` (#280)
Replace `MSVCRT` with `ucrt`.  There is nothing being used from the
`MSVCRT` module, prefer using `ucrt`.
2020-10-14 21:20:32 -04:00
JP Simard b9eba20519
Remove migration helpers (#278)
These were deprecated 3 years ago
2020-09-25 08:25:37 -07:00
Mathew Polzin 5cf653d248
Fix and test string -> integer misstep upon decoding. (#264)
Fixes https://github.com/jpsim/Yams/issues/263 by only constructing integer and floating point values from scalars if those scalars are in the `plain` "flow" style. It additionally allows through scalars with no styling information (`any`).
2020-09-10 10:15:03 -07:00
JP Simard 9f9b4632ce
Merge pull request #273 from garymm/fix-pow-tensorflow
Fix build with tensorflow toolchain
2020-08-31 10:31:16 -07:00
Gary Miguel 870b9696a2 Fix build with tensorflow toolchain
Due to https://bugs.swift.org/browse/TF-1203, there's a build failure
without this patch:

```
error: static member 'pow' cannot be used on instance of type 'Double'
```
2020-08-31 16:51:56 +00:00
JP Simard ea41e10588
Merge pull request #271 from compnerd/double-trouble
Yams: repair the build with the autodifferentiation toolchain
2020-08-21 19:58:36 -07:00
JP Simard fa2d08f56d
Merge pull request #272 from compnerd/ci-cmake
CI: improve CMake testing
2020-08-21 11:33:12 -07:00
Saleem Abdulrasool 6963656814 CI: improve CMake testing
Improve the testing with CMake to exercise the installation path.  This
ensures that installation of the libraries works properly.
2020-08-21 11:26:58 -07:00
Saleem Abdulrasool 70140a180a Yams: repair the build with the autodifferentiation toolchain
```
error: static member 'pow' cannot be used on instance of type 'Double'
```

When building Yams with the TensorFlow toolchain, this crops us.  Simply
add the explicit type annotation.
2020-08-21 11:05:23 -07:00
JP Simard e3be5632cd
Add empty changelog section 2020-08-21 12:53:18 -04:00
JP Simard 88caa2e6ff
Merge pull request #270 from jpsim/release-4.0.0
Release 4.0.0
2020-08-21 09:21:03 -07:00
JP Simard 26455e8a3f
Release 4.0.0 2020-08-21 12:02:55 -04:00
JP Simard 3623ce6e2e
Merge pull request #269 from jpsim/ci-test-on-xcode-11.511.6-and-swift-5.3
[CI] Test on Xcode 11.5/11.6
2020-08-21 08:32:31 -07:00
JP Simard 26c5157763
fixup! [CI] Test on Xcode 11.5/11.6 and Swift 5.3 2020-08-21 11:02:46 -04:00
JP Simard f12d04ecf5
[CI] Test on Xcode 11.5/11.6 and Swift 5.3 2020-08-21 10:59:37 -04:00
JP Simard 168d4f3370
Add changelog entry 2020-08-21 10:56:45 -04:00
JP Simard 23f25bf33b
Merge pull request #268 from compnerd/install
build: improve installation
2020-08-21 07:56:37 -07:00
Saleem Abdulrasool cdafa7712f build: improve installation
We would previously fail to install Yams from CMake due to searching for
the swiftmodule in the wrong location.  This uses the new improved
generic installation rules that I've been using in a number of other
projects to install the swift content across all the platforms.
2020-08-17 10:45:17 -07:00
JP Simard 6e6483a6dd
Make YAMLDecoder conform to TopLevelDecoder (#262)
* Add TopLevelDecoder conformance

* fixup! Add TopLevelDecoder conformance

* Support decoding `Data`

- Set `TopLevelDecoder.Input` to `Data`
- Provide `YAMLDecoder.deecode(...)` function taking `Data` as input
- Add tests for `TopLevelDecoder` and `Data` decoding
- Add `Parser.Encoding.swiftStringEncoding` member to convert between the Swift String encoding and the Yams encoding
- Fix warnings with Swift 5.3

* Add TopLevelDecoderTests to CMakeLists.txt

* Only add TopLevelDecoderTests.swift to LinuxMain.swift if Combine is available

* Completely remove TopLevelDecoderTests from LinuxMain

* Use @available attribute

* Store cancellable

* 5.3

* Force unwrap

* merge compiler conditionals

* Fixes

* Try to run TopLevelDecoderTests with Swift 5.2+

* Only report code coverage for latest Xcode version

* Update README

* Remove stored cancellable

* Add changelog entries

* Install latest SwiftLint available to Homebrew
2020-07-06 20:54:51 -04:00
Saleem Abdulrasool 11bbadede6
Yams: remove conditional cases for Windows (#259)
Unify the non-Windows and Windows paths.  The full codebase now builds
without any special case for Windows.
2020-05-18 07:14:43 -07:00
Saleem Abdulrasool 84621a6025
build: add the ability to run the test suite from CMake (#256)
Expand the CMake based build to support running the test suite.  This
allows testing on Windows as well.  Although the test suite does not
fully pass on Windows yet, this brings us closer.

With this on Windows, the following is the result:

```
  Test Suite 'All tests' failed at 2020-05-14 12:11:08.871
           Executed 120 tests, with 9 failures (0 unexpected) in 0.505 (0.505) seconds
```

The failures in the test suite correspond to the conversion of floating
point values in the infinity and NaN cases (either converting to
`-infe+0`, `infe+0`, or `nane+0` instead of `-inf`, `inf`, `nan`, or
converting to `NaN` instead of `nan`).
2020-05-15 16:39:33 -07:00
Saleem Abdulrasool 170ac41044 build: simplify Foundation handling
Enable building against an uninstalled copy of Foundation but do not
require it.  This allows for a simpler build system.  If the user wishes
to build against an out-of-tree Foundation, they can simply specify
`Foundation_DIR` and `dispatch_DIR` when configuring and CMake will
handle the rest.
2020-05-14 20:06:53 -07:00
Saleem Abdulrasool 7fa1c3c7e4 build: use a single top-level Swift module directory
Rather than have a swift module directory that you need to find for each
library, use a single global swift module directory similar to the
runtime output directory.  This will be useful for a follow up change to
enable tests.
2020-05-14 14:50:15 -07:00
JP Simard d9173c6f07 Actions : Update to checkout@v2
This is said to fix "reference is not a tree" errors when retrying a workflow:

https://github.com/actions/checkout/issues/23#issuecomment-572688577
2020-05-14 14:43:55 -07:00
JP Simard 89bfc6c2db
Release 3.0.1 2020-05-10 01:10:33 -07:00
JP Simard d39c5468f5
Set CMake archive, library & runtime output directories (#252)
To match expectations for the Swift Package Manager, which uses

* `bin/` for CMake < 3.16 on Windows; and
* `lib/` otherwise
2020-05-10 00:56:40 -07:00
JP Simard b2537bc463
Fix CMake (#251)
The CMake instructions in the readme didn't quite work when I tried them on macOS today.

This patch includes a few changes to `CMakeLists.txt` and the `README.md` instructions to reflect the latest steps to build.

Also add a CI job to validate that this keeps working moving forward.
2020-05-08 13:50:29 -07:00
JP Simard 775dec7923
Require Swift 5.1 to build (#249) 2020-04-17 22:00:58 -07:00
JP Simard e138fecfc4
Add empty changelog section 2020-04-17 21:24:26 -07:00
JP Simard 53741ba55e
Release 3.0.0 2020-04-17 15:06:17 -07:00
JP Simard 097c527a8d
Add more supported swift versions to podspec 2020-04-17 14:56:30 -07:00
JP Simard a9be523c38
Add missing test to manifest 2020-04-17 14:56:03 -07:00