Add ghc980
and ghc99
#1179
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
name: "Run tests with ghc8107" | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
# do we really want nixos-unstable? | |
env: | |
NIX_PATH: "nixpkgs=channel:nixos-unstable" | |
jobs: | |
nix-build: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Running the nix-build tests..." | |
run: "./test/tests.sh ghc8107 nix-build" | |
unit-tests: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Running the unit tests..." | |
run: "./test/tests.sh ghc8107 unit-tests" | |
runghc: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that a nix-shell works for runghc..." | |
run: "./test/tests.sh ghc8107 runghc" | |
cabal: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal..." | |
run: "./test/tests.sh ghc8107 cabal" | |
cabal-doExactConfig: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal (doExactConfig component)..." | |
run: "./test/tests.sh ghc8107 cabal-doExactConfig" | |
tests-benchmarks: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that a nix-shell works for a project with test-suite build-tools and benchmarks..." | |
run: "./test/tests.sh ghc8107 tests-benchmarks" | |
multi-target: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that a nix-shell works for a multi-target project..." | |
run: "./test/tests.sh ghc8107 multi-target" | |
shellFor-single-package: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, multiple packages..." | |
run: "./test/tests.sh ghc8107 shellFor-single-package" | |
shellFor-multiple-package: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package...y" | |
run: "./test/tests.sh ghc8107 shellFor-multiple-package" | |
shellFor-hoogle: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package..." | |
run: "./test/tests.sh ghc8107 shellFor-hoogle" | |
shellFor-not-depends: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking shellFor does not depend on given packages...y" | |
run: "./test/tests.sh ghc8107 shellFor-not-depends" | |
maintainer-scripts: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking the maintainer scripts...y" | |
run: "./test/tests.sh ghc8107 maintainer-scripts" | |
plan-extra-hackages: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that plan construction works with extra Hackages..." | |
run: "./test/tests.sh ghc8107 plan-extra-hackages" | |
build-extra-hackages: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: Checking that package with extra Hackages can be build..." | |
run: "./test/tests.sh ghc8107 build-extra-hackages" | |
hix: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..." | |
run: "./test/tests.sh ghc8107 hix" | |
docs: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Test examples in documentation ..." | |
run: "./test/tests.sh ghc8107 docs" | |
hydra-ifdLevel-0-and-1: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that jobset will evaluate in Hydra at ifdLevel 0 and 1" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh | |
./check-hydra.sh --arg ifdLevel 0 | |
./check-hydra.sh --arg ifdLevel 1 | |
hydra-ifdLevel-2: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that jobset will evaluate in Hydra at ifdLevel 2" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh | |
./check-hydra.sh --arg ifdLevel 2 | |
hydra-ifdLevel-3-and-ghc-8-10: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 8.10" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh | |
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 6 x == "ghc810"' | |
hydra-ifdLevel-3-and-ghc-9-2: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 9.2" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh | |
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 5 x == "ghc92"' | |
hydra-ifdLevel-3-and-not-ghc-8-10-or-9-2: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and not (ghc 8.10 or ghc 9.2)" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh | |
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: !(__substring 0 6 x == "ghc810" || __substring 0 5 x == "ghc92")' | |
closure-size: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check closure size with ghc8107" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-closure-size --argstr compiler-nix-name ghc8107 -o check-closure-size.sh | |
echo "+++ Closure size (MB)" | |
./check-closure-size.sh | |
update-docs: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Update docs" | |
run: | | |
nix-build build.nix -A maintainer-scripts.update-docs -o update-docs.sh | |
./update-docs.sh | |
check-materialization-concurrency: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Make sure materialize function does not limit concurrency" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh | |
./check-materialization-concurrency.sh | |
check-path-support: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Make sure non store paths like can be used as src" | |
run: | | |
nix-build build.nix -A maintainer-scripts.check-path-support --argstr compiler-nix-name ghc8107 -o check-path-support.sh | |
./check-path-support.sh | |
haskell-nix-roots-do-not-require-IFDs: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that the haskell.nix roots do not require IFDs" | |
run: nix build .#roots.x86_64-linux --accept-flake-config --option allow-import-from-derivation false | |
hydra-without-remote-builders: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check that evaluation of hydra jobs works without using remote builders" | |
run: nix path-info --derivation .#requiredJobs.x86_64-darwin.required-unstable-ghc8107-native --show-trace --builders '' | |
hix-cabal: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check hix -- run github:haskell/cabal/3.10#cabal-install:exe:cabal -- --version" | |
run: "HIX_DIR=$(mktemp -d) nix run .#hix --accept-flake-config -- run github:haskell/cabal/3.10#cabal-install:exe:cabal --accept-flake-config --override-input haskellNix . -- --version" | |
nix-tools: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: nix build ./nix-tools#checks.x86_64-linux.truncate-index --accept-flake-config |