-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from obsidiansystems/aa/ci
GHC 884 compatibility and CI
- Loading branch information
Showing
24 changed files
with
353 additions
and
169 deletions.
There are no files selected for viewing
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,39 @@ | ||
name: github-action | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
ghc: ['8.6.5', '8.8.4'] | ||
os: ['ubuntu-latest', 'macos-latest'] | ||
runs-on: ${{ matrix.os }} | ||
|
||
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-haskell@v1 | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
- name: Cache | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-cabal | ||
with: | ||
path: ~/.cabal | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-${{ matrix.ghc }}-build- | ||
${{ runner.os }}-${{ matrix.ghc }}- | ||
${{ runner.os }} | ||
- name: Install dependencies | ||
run: | | ||
cabal update | ||
cabal build --only-dependencies --enable-tests --enable-benchmarks | ||
- name: Build | ||
run: cabal build --enable-tests --enable-benchmarks all | ||
- name: Run tests | ||
run: cabal test all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Contribution Guide | ||
|
||
Contributions and issue reports are encouraged and appreciated! | ||
|
||
- [Opening Issues](#opening-issues) | ||
- [Submitting Changes](#submitting-changes) | ||
- [Guidelines for Commit Messages](#guidelines-for-commit-messages) | ||
- [Code Quality](#code-quality) | ||
- [Documentation](#documentation) | ||
|
||
## Opening Issues | ||
|
||
Before opening an issue, please check whether your issue has already been reported. Assuming it has not: | ||
|
||
* Describe the issue you're encountering or the suggestion you're making | ||
* Include any relevant steps to reproduce or code samples you can. It's always easier for us to debug if we have something that demonstrates the error. | ||
* Let us know what version of this project you were using. If you're using a github checkout, provide the git hash. | ||
* Describe how you're building this project (i.e., via nix, reflex-platform, cabal install, stack, obelisk, etc.). If you're using reflex-platform or obelisk, provide the git hash of your checkout. | ||
|
||
## Submitting Changes | ||
|
||
### Guidelines for Commit Messages | ||
|
||
#### Summary Line | ||
The summary line of your commit message should summarize the changes being made. Commit messages should be written in the imperative mood and should describe what happens when the commit is applied. | ||
|
||
One way to think about it is that your commit message should be able to complete the sentence: | ||
"When applied, this commit will..." | ||
|
||
#### Body | ||
For breaking changes, new features, refactors, or other major changes, the body of the commit message should describe the motivation behind the change in greater detail and may include references to the issue tracker. The body shouldn't repeat code/comments from the diff. | ||
|
||
### Code Quality | ||
|
||
#### Warnings | ||
|
||
Your pull request should add no new warnings to the project. It should also generally not disable any warnings. | ||
|
||
#### Build and Test | ||
|
||
Make sure the project builds and that the tests pass! This will generally also be checked by CI before merge, but trying it yourself first means you'll catch problems earlier and your contribution can be merged that much sooner! | ||
|
||
### Documentation | ||
|
||
#### In the code | ||
We're always striving to improve documentation. Please include [haddock](https://haskell-haddock.readthedocs.io/en/latest/index.html) documentation for any added code, and update the documentation for any code you modify. | ||
|
||
#### In the [Changelog](ChangeLog.md) | ||
Add an entry to the changelog when your PR: | ||
* Adds a feature | ||
* Deprecates something | ||
* Includes a breaking change | ||
* Makes any other change that will impact users | ||
|
||
#### In the [Readme](README.md) | ||
The readme is the first place a lot of people look for information about the repository. Update any parts of the readme that are affected by your PR. | ||
|
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 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,17 @@ | ||
{ nixos2003 = import (builtins.fetchTarball { | ||
name = "nixos-20.03_2020-11-18"; | ||
url = "https://github.com/nixos/nixpkgs/archive/f05c380a51daee53ac2edb0bac2fd5f1774e977a.tar.gz"; | ||
sha256 = "1xkgv4kvh2nii1kbxi0brjnb15scpzk8rkp7mzycgqh1lzfg23im"; | ||
}) {}; | ||
nixos1809 = import (builtins.fetchTarball { | ||
name = "nixos-18.09_2020-11-18"; | ||
url = "https://github.com/nixos/nixpkgs/archive/a7e559a5504572008567383c3dc8e142fa7a8633.tar.gz"; | ||
sha256 = "16j95q58kkc69lfgpjkj76gw5sx8rcxwi3civm0mlfaxxyw9gzp6"; | ||
}) {}; | ||
unstable = import (builtins.fetchTarball { | ||
name = "nixpkgs-unstable_2020-11-18"; | ||
url = "https://github.com/nixos/nixpkgs/archive/4f3475b113c93d204992838aecafa89b1b3ccfde.tar.gz"; | ||
sha256 = "158iik656ds6i6pc672w54cnph4d44d0a218dkq6npzrbhd3vvbg"; | ||
}) {}; | ||
|
||
} |
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,8 @@ | ||
{ | ||
"owner": "obsidiansystems", | ||
"repo": "cli-extras", | ||
"branch": "release/0.1.0.1", | ||
"private": false, | ||
"rev": "64afac6a7bbb0a99e70ce6ce58bbdc26a0c11cb8", | ||
"sha256": "05c84jfl20q6xnzwvy722zqx4zj1858q91dk2236gidvyawsybgz" | ||
} |
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
let fetch = {url, rev, branch ? null, sha256 ? null, fetchSubmodules ? false, private ? false, ...}: | ||
let realUrl = let firstChar = builtins.substring 0 1 url; in | ||
if firstChar == "/" then /. + url | ||
else if firstChar == "." then ./. + url | ||
else url; | ||
in if !fetchSubmodules && private then builtins.fetchGit { | ||
url = realUrl; inherit rev; | ||
${if branch == null then null else "ref"} = branch; | ||
} else (import <nixpkgs> {}).fetchgit { | ||
url = realUrl; inherit rev sha256; | ||
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: | ||
if !fetchSubmodules && !private then builtins.fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; | ||
} else (import <nixpkgs> {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./git.json); | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |
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,8 @@ | ||
{ | ||
"owner": "obsidiansystems", | ||
"repo": "cli-git", | ||
"branch": "release/0.1.0.1", | ||
"private": false, | ||
"rev": "7872bd16115abaf099eb98985f214bb9e7982a41", | ||
"sha256": "0f5aygzz35m498a5cqgnb10ylkz7cdni6d9hg4mdmdy30kmw910g" | ||
} |
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
let fetch = {url, rev, branch ? null, sha256 ? null, fetchSubmodules ? false, private ? false, ...}: | ||
let realUrl = let firstChar = builtins.substring 0 1 url; in | ||
if firstChar == "/" then /. + url | ||
else if firstChar == "." then ./. + url | ||
else url; | ||
in if !fetchSubmodules && private then builtins.fetchGit { | ||
url = realUrl; inherit rev; | ||
${if branch == null then null else "ref"} = branch; | ||
} else (import <nixpkgs> {}).fetchgit { | ||
url = realUrl; inherit rev sha256; | ||
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: | ||
if !fetchSubmodules && !private then builtins.fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; | ||
} else (import <nixpkgs> {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./git.json); | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |
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,8 @@ | ||
{ | ||
"owner": "obsidiansystems", | ||
"repo": "cli-nix", | ||
"branch": "release/0.1.0.1", | ||
"private": false, | ||
"rev": "54838e02b5ed96ef88520011d56fac57a1d20aa3", | ||
"sha256": "094l10mkzzln7pqwxcww14qi3wgn4l2piam2q4hffyp7z40hznv3" | ||
} |
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
let fetch = {url, rev, branch ? null, sha256 ? null, fetchSubmodules ? false, private ? false, ...}: | ||
let realUrl = let firstChar = builtins.substring 0 1 url; in | ||
if firstChar == "/" then /. + url | ||
else if firstChar == "." then ./. + url | ||
else url; | ||
in if !fetchSubmodules && private then builtins.fetchGit { | ||
url = realUrl; inherit rev; | ||
${if branch == null then null else "ref"} = branch; | ||
} else (import <nixpkgs> {}).fetchgit { | ||
url = realUrl; inherit rev sha256; | ||
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: | ||
if !fetchSubmodules && !private then builtins.fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; | ||
} else (import <nixpkgs> {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./git.json); | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |
File renamed without changes.
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,8 @@ | ||
{ | ||
"owner": "phadej", | ||
"repo": "github", | ||
"branch": "master", | ||
"private": false, | ||
"rev": "5b9df6f52d175df6b19eb3daa31f5a73237ea5dd", | ||
"sha256": "14j4zzdj1ysy0r42qpmv22mrkxici3jdiycr1rp1xbkf841pdhwb" | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"owner": "obsidiansystems", | ||
"repo": "which", | ||
"branch": "develop", | ||
"branch": "release/0.2.0.0", | ||
"private": false, | ||
"rev": "a7a86bfa1d05d81de4a12a89315bd383763b98ea", | ||
"sha256": "1635wh4psqbhybbvgjr9gy6f051sb27zlgfamrqw14cdrqdvk5m8" | ||
"rev": "29ec2b4675872afffeee9d4a6f37f4057d52ec7d", | ||
"sha256": "1pm155p4ncbd61lsaicg6s6d6zv5h98c9dl5x675bnlhymk8zq9b" | ||
} |
Oops, something went wrong.