0449dc4570
* "rev" "default" tracks local default Nixpkgs channel. * "compiler" "default" tracks default Nixpkgs GHC compiler. * Properly providing secret to the GitHub CI workflows. * Clean-up. * Project freed form reliance on Travis CI. * Removing unmaintained GHCJS build, in favor for the further move to Haskell to WebAssembly compilation. --- In terms of the fish shell the rebase merge is done in this way: ```fish set -l tmpDir "$HOME/src/tmp" set -l sourceDir 'haskell-with-nixpkgs' set -l sourceUrl "git@github.com:haskell-nix/$sourceDir.git" set -l masterDir 'hnix' set -l masterUrl "git@github.com:haskell-nix/$masterDir.git" set -l fileList \ default.nix \ build.sh \ ghcjs-build.sh \ Cabal-Linux.yml \ Nixpkgs-GHCJS.yml \ Nixpkgs-Linux-additional.yml \ Nixpkgs-Linux-maim.yml \ Nixpkgs-macOS.yml mkdir -p "$tmpDir" rm -rf "$tmpDir/$sourceDir" rm -rf "$tmpDir/$masterDir" cd "$tmpDir" git clone "$sourceUrl" "$sourceDir" cd "$sourceDir" git-pass-filter $fileList cd "$tmpDir" git clone "$masterUrl" "$masterDir" cd "$masterDir" git checkout -b upd-from-"$sourceDir" git remote add hn "$tmpDir/$sourceDir" git fetch hn master git merge -S --allow-unrelated-histories hn/master ``` --- ```log 10 files changed, 42 insertions(+), 401 deletions(-) .github/workflows/Cabal-Linux.yml | 4 - .github/workflows/Nixpkgs-Linux-main.yml | 12 +- .github/workflows/Nixpkgs-Linux-additional.yml | 4 +- .github/workflows/Nixpkgs-macOS.yml | 5 +- default.nix | 33 +++-- build.sh | 97 ++------------- .github/workflows/Nixpkgs-GHCJS-turned-off | 45 ------- ghcjs/nix.conf | 2 - ghcjs/default.nix | 79 ------------ .travis.yml | 162 ------------------------- ```
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: "Hackage, Cabal, Linux"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
- cron: "45 02 * * *"
|
|
|
|
|
|
jobs:
|
|
|
|
build10:
|
|
name: GHC
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ghc: [ "8.10", "8.4" ]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cabal/packages
|
|
~/.cabal/store
|
|
dist-newstyle
|
|
key: ${{ runner.os }}-Cabal-${{ matrix.ghc }}
|
|
- uses: actions/setup-haskell@v1.1
|
|
with:
|
|
ghc-version: ${{ matrix.ghc }}
|
|
- name: Install additional system packages
|
|
run: sudo apt install libsodium-dev
|
|
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v10
|
|
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
|
|
- run: cabal v2-build
|
|
- run: cabal v2-test
|