-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
7c6f25a
commit 5720bd4
Showing
19 changed files
with
2,963 additions
and
2,355 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@byteverse/l3c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.