Skip to content

Commit

Permalink
Prepare 1.1.6.1 release.
Browse files Browse the repository at this point in the history
Reformatted.
Use new .github workflows.
Updated package metadata.
Added new workflow for building on Windows and MacOS.
Added doctest support to workflows.
Updated readme.
  • Loading branch information
brianjosephmckeon authored Feb 15, 2024
1 parent 7c6f25a commit 5720bd4
Show file tree
Hide file tree
Showing 19 changed files with 2,963 additions and 2,355 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@byteverse/l3c
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Build pull request branches only for Ubuntu.
name: build
on:
pull_request:
branches:
- "*"

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/build-matrix.yaml@main
with:
cabal-file: chronos.cabal
53 changes: 0 additions & 53 deletions .github/workflows/ci.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/other-os.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Build main on Windows and MacOS.
name: other os

on:
push:
branches:
- main

# Concurrency settings.
# Only one job of this workflow will run at a time.
# If a job is currently running, it'll be canceled.
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
generate-matrix:
name: "Generate matrix from cabal file"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
runs-on: ubuntu-latest
steps:
- name: Extract GHC versions
id: set-matrix
uses: kleidukos/[email protected]
with:
cabal-file: chronos.cabal
windows: true
macos: true
version: 0.1.6.0

build:
name: ${{ matrix.ghc }} on ${{ matrix.os }}
needs: generate-matrix
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up GHC ${{ matrix.ghc }}
uses: haskell-actions/setup@latest
id: setup
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 'latest'

- name: Configure the build
run: |
cabal configure --disable-documentation --disable-benchmarks
- name: Build
run: cabal build all

- name: Run tests
run: |
cabal test all --test-show-details=direct
cabal install doctest
cabal repl --build-depends=QuickCheck --with-ghc=doctest --repl-options='-fno-warn-orphans -Wno-unused-packages'
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: release
on:
push:
tags:
- "*"

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/release.yaml@main
secrets: inherit
62 changes: 33 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
1.1.6.0 [XXXX.XX.XX]
--------------------
# Revision history for chronos

## 1.1.6.1 -- 2024-02-15

* Update package metadata.

## 1.1.6.0 -- 2024-01-29

* Add `sinceEpoch` and `asSeconds` functions

1.1.5.1: [2023.08.24]
---------------------
## 1.1.5.1 -- 2023-08-24

* Allow newer `natural-arithmetic`, `primitive`, and `vector`.
* Allow base 4.18.
* Add units to offset docs.

1.1.5: [2022.11.03]
-------------------
## 1.1.5 -- 2022-11-03

* Add `decodeShortTextIso8601Zulu`.
* Add `decodeUtf8BytesIso8601ZonelessSpaced`.

1.1.4: [2022.02.21]
-------------------
## 1.1.4 -- 2022-02-21

* Fix February length in `normalYearMonthLength`. Fixes GitHub issue #67.
* Support aeson-2.x, with backward compatibility for aeson-1.x.
* Add helper `dateToDayOfWeek`
* Add helpers `encode_Ymd` and `encode_Dmy` to more easily pretty-print dates
* Add various lenses for core data type fields and isos
* Drop support for GHC 8.8 and earlier.

1.1.3: [2021.09.07]
-------------------
## 1.1.3 -- 2021-09-07

* Dropped support for GHC < 8.6.
* Integrated with `byteverse` libraries and `text-short`, adding efficient
builders and parsers targeting UT8-encoded unpinned byte arrays. The new
Expand All @@ -38,50 +43,49 @@
incorrectly identifier a subseconds part of 0 (i.e. `23:59:17.000`).
* Improved layout of cabal file.

1.1.2: [2021.02.08]
-------------------
## 1.1.2 -- 2021-02-08

* Adds `NFData` typeclass instances for all data types.
* Add `encodeIso8601` and `builderIso8601`.
* Soft deprecate `builderW3C` in favor of `builderIso8601`.
* Fix formatting in cabal file.
* Fix formatting in cabal file.

## 1.1.1 -- 2020-04-17

1.1.1: [2020.04.17]
-------------------
* Add `timeToDayOfWeek`, `datetimeToDayOfWeek`, `todayDayOfWeek`,
`yesterdayDayOfWeek`, and `tomorrowDayOfWeek`.
* Remove `stopwatchWith(_)` on GHC 8.6+.
* Fix build on 32-bit POSIX systems.

1.1: [2019.11.28]
-----------------
## 1.1 -- 2019-11-28

* Drop dependency of `clock` on GHC 8.6+.
* Remove `stopwatchWith(_)` on GHC 8.6+.
* Deprecate `stopwatchWith(_)` on GHC <8.6.
* Fix build on Windows. Thanks @SpaceKitteh for reporting this.

1.0.9: [2019.11.09]
-------------------
## 1.0.9 -- 2019-11-09

* Add `TimeParts` for custom formatting.

1.0.8: [2019.11.07]
-------------------
## 1.0.8 -- 2019-11-07

* Allow newer semigroups.

1.0.7: [2019.08.16]
-------------------
## 1.0.7 -- 2019-08-16

* Fix build on windows. Chronos now builds on windows, macos, and linux. Thanks
to @nprindle for the fix/testing and @ShrykerWindgrace for reporting it!

1.0.6: [2019.07.19]
-----------------
## 1.0.6 -- 2019-07-19

* Add 'TimeInterval' type and related functions.

1.0.5: [2019.05.01]
-------------------
## 1.0.5 -- 2019-05-01

* Allow newer version of `clock` (==0.7.* ===> >=0.7 && < 0.9)
* Build with -Wall
* Build with -O2

1.0.4: [2018.08.14]
-------------------
## 1.0.4 -- 2018-08-14
* Initial version, w.r.t. CHANGELOG (i.e. there was no changelog before).
7 changes: 1 addition & 6 deletions README.markdown → README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Chronos

[![Windows build](https://ci.appveyor.com/api/projects/status/github/andrewthad/chronos?branch=master&svg=true)](https://ci.appveyor.com/project/andrewthad/chronos)

Chronos is a performance-oriented time library for Haskell, with a
straightforward API. The main differences between this
and the [time](http://hackage.haskell.org/package/time) library
Expand Down Expand Up @@ -64,7 +62,4 @@ do not require this to be run. To run the doctests, make sure you have
cabal build
cabal repl --build-depends=QuickCheck --with-ghc=doctest --repl-options='-fno-warn-orphans'

This runs incredibly slowly, but it works for now. Doctest is not run by CI,
so if you make a change that adds more doctests, it needs to be run by hand
by someone. (The maintainer is happy to do this if you're on a platform
where doctest is finicky.)
Doctest now runs as part of CI.
2 changes: 0 additions & 2 deletions Setup.hs

This file was deleted.

6 changes: 0 additions & 6 deletions app/Main.hs

This file was deleted.

34 changes: 0 additions & 34 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 5720bd4

Please sign in to comment.