Skip to content

Commit

Permalink
Merge pull request haskell-nix#8 from Anton-Latukha/2020-07-07-replac…
Browse files Browse the repository at this point in the history
…e-solidify-work

Solidifying work
  • Loading branch information
Anton-Latukha committed Jul 7, 2020
2 parents 65f00ae + 63d1e16 commit 7b51ea7
Showing 1 changed file with 24 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Nixpkgs, Linux"
name: "Nixpkgs, GHC, Linux"
on:
# On Git changes in PR
pull_request:
Expand Down Expand Up @@ -50,6 +50,8 @@ env:
executableNamesToShellComplete: '[ "replaceWithExecutableName" ]'

jobs:

# Basic example
build10:
name: "Nixpkgs-unstable channel, default GHC (8.8.3)"
runs-on: ubuntu-latest
Expand All @@ -63,25 +65,40 @@ jobs:
uses: cachix/install-nix-action@v10
- name: Determined nix-build
run: ./build.sh


# Example of customization using Nixpkgs Haskell Lib API
build20:
name: "NixOS-unstable channel, Strict build, default GHC (8.8.3)"
name: "Release-quality test, SDist, Optimization, Benchmark, Haddock, GHC 8.10.1, Nix shell"
runs-on: ubuntu-latest
continue-on-error: true
env:
buildStrictly: "true"
compiler: "ghc8101"
buildFromSdist: "true"
linkWithGold: "true"
doHaddock: "true"
doHyperlinkSource: "true"
doBenchmark: "true"
disableOptimization: "false"
enableDeadCodeElimination: "true"
generateOptparseApplicativeCompletions: "false"
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v10
- name: Determined nix-build
run: ./build.sh
- name: Test Nix-shell
run: nix-shell --command 'echo Succesfully evaluated, loaded and entered $IN_NIX_SHELL Nix shell env.'

# Other samples of tests used in the project
build30:
name: "NixOS 20.03 stable channel, default GHC (8.8.3)"
name: "NixOS-unstable channel, Strict build, default GHC (8.8.3)"
runs-on: ubuntu-latest
continue-on-error: true
env:
rev: "nixos-20.03"
buildStrictly: "true"
steps:
- name: Git checkout
uses: actions/checkout@v2
Expand All @@ -90,19 +107,11 @@ jobs:
- name: Determined nix-build
run: ./build.sh
build40:
name: "Quality test, SDist, Optimization, Benchmark, Haddock, GHC 8.10.1"
name: "NixOS 20.03 stable channel, default GHC (8.8.3)"
runs-on: ubuntu-latest
continue-on-error: true
env:
compiler: "ghc8101"
buildFromSdist: "true"
linkWithGold: "true"
doHaddock: "true"
doHyperlinkSource: "true"
doBenchmark: "true"
disableOptimization: "false"
enableDeadCodeElimination: "true"
generateOptparseApplicativeCompletions: "false"
rev: "nixos-20.03"
steps:
- name: Git checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 7b51ea7

Please sign in to comment.