mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-12-13 15:46:26 +03:00
Merge pull request #188 from sorki/actionsBump
Aggregated Actions bump, pinning
This commit is contained in:
commit
e95e8cb13c
11
.github/workflows/Cabal-Linux-Remote.yml
vendored
11
.github/workflows/Cabal-Linux-Remote.yml
vendored
@ -26,13 +26,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: "Haskell env setup"
|
- name: "Haskell env setup"
|
||||||
id: HaskEnvSetup
|
id: HaskEnvSetup
|
||||||
uses: haskell/actions/setup@v1
|
uses: haskell/actions/setup@v2
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
# Still required for Remote
|
# Still required for Remote
|
||||||
- name: "Install Nix"
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v16
|
uses: cachix/install-nix-action@v17
|
||||||
if: matrix.packageRoot == 'hnix-store-remote'
|
if: matrix.packageRoot == 'hnix-store-remote'
|
||||||
|
|
||||||
# Remote: Enabling testsuite, because it requires networking in the default Nix environment.
|
# Remote: Enabling testsuite, because it requires networking in the default Nix environment.
|
||||||
@ -60,13 +60,14 @@ jobs:
|
|||||||
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
||||||
|
|
||||||
- name: "Configuring GitHub cache"
|
- name: "Configuring GitHub cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
||||||
dist-newstyle
|
dist-newstyle
|
||||||
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
||||||
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
|
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
|
||||||
|
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-v2
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: cabal v2-build $cabalConfig
|
run: cabal v2-build $cabalConfig
|
||||||
|
9
.github/workflows/Core-Cabal-Linux.yml
vendored
9
.github/workflows/Core-Cabal-Linux.yml
vendored
@ -28,13 +28,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: "Haskell env setup"
|
- name: "Haskell env setup"
|
||||||
id: HaskEnvSetup
|
id: HaskEnvSetup
|
||||||
uses: haskell/actions/setup@v1
|
uses: haskell/actions/setup@v2
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
|
|
||||||
@ -52,13 +52,14 @@ jobs:
|
|||||||
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
||||||
|
|
||||||
- name: "Configuring GitHub cache"
|
- name: "Configuring GitHub cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
||||||
dist-newstyle
|
dist-newstyle
|
||||||
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
||||||
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
|
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
|
||||||
|
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-v2-
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: cabal v2-build $cabalConfig
|
run: cabal v2-build $cabalConfig
|
||||||
|
6
.github/workflows/Core-Cabal-macOS.yml
vendored
6
.github/workflows/Core-Cabal-macOS.yml
vendored
@ -25,13 +25,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: "Haskell env setup"
|
- name: "Haskell env setup"
|
||||||
id: HaskEnvSetup
|
id: HaskEnvSetup
|
||||||
uses: haskell/actions/setup@v1
|
uses: haskell/actions/setup@v2
|
||||||
with:
|
with:
|
||||||
ghc-version: '9.0'
|
ghc-version: '9.0'
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ jobs:
|
|||||||
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
||||||
|
|
||||||
- name: "Configuring GitHub cache"
|
- name: "Configuring GitHub cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3.0.1
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
||||||
|
9
.github/workflows/On-Release-Cabal-Linux.yml
vendored
9
.github/workflows/On-Release-Cabal-Linux.yml
vendored
@ -25,13 +25,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: "Haskell env setup"
|
- name: "Haskell env setup"
|
||||||
id: HaskEnvSetup
|
id: HaskEnvSetup
|
||||||
uses: haskell/actions/setup@v1
|
uses: haskell/actions/setup@v2
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
# Still required for Remote
|
# Still required for Remote
|
||||||
- name: "Install Nix"
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v16
|
uses: cachix/install-nix-action@v17
|
||||||
if: matrix.packageRoot == 'hnix-store-remote'
|
if: matrix.packageRoot == 'hnix-store-remote'
|
||||||
|
|
||||||
# Remote: Enabling testsuite, because it requires networking in the default Nix environment.
|
# Remote: Enabling testsuite, because it requires networking in the default Nix environment.
|
||||||
@ -59,12 +59,13 @@ jobs:
|
|||||||
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
run: cp -a cabal.project.freeze ../cabal.project.freeze
|
||||||
|
|
||||||
- name: "Configuring GitHub cache"
|
- name: "Configuring GitHub cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
||||||
dist-newstyle
|
dist-newstyle
|
||||||
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
|
||||||
|
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
|
||||||
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
|
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
|
10
.github/workflows/Optional-Nix-dev-env-main.yml
vendored
10
.github/workflows/Optional-Nix-dev-env-main.yml
vendored
@ -28,11 +28,11 @@ jobs:
|
|||||||
working-directory: "./${{ matrix.packageRoot }}"
|
working-directory: "./${{ matrix.packageRoot }}"
|
||||||
steps:
|
steps:
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: "Install Nix"
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v16
|
uses: cachix/install-nix-action@v17
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: "Install Cachix"
|
- name: "Install Cachix"
|
||||||
@ -42,9 +42,3 @@ jobs:
|
|||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: "Determined Nix-build"
|
- name: "Determined Nix-build"
|
||||||
run: nix-build ../ -A "haskellPackages.${{ matrix.packageRoot }}"
|
run: nix-build ../ -A "haskellPackages.${{ matrix.packageRoot }}"
|
||||||
env:
|
|
||||||
# 2020-12-22: NOTE: allowBroken ideally should be temporary.
|
|
||||||
NIXPKGS_ALLOW_BROKEN: "1"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
12
default.nix
12
default.nix
@ -1,4 +1,14 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }: let
|
{ rev ? "c542baa0c894796c92a8173dead027f3b952c22e"
|
||||||
|
, pkgs ?
|
||||||
|
if ((rev == "") || (rev == "default") || (rev == "local"))
|
||||||
|
then import <nixpkgs> {}
|
||||||
|
# Do not guard with hash, so the project is able to use current channels (rolling `rev`) of Nixpkgs
|
||||||
|
else import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz") {}
|
||||||
|
// {
|
||||||
|
# Try to build dependencies even if they are marked broken.
|
||||||
|
config.allowBroken = true;
|
||||||
|
}
|
||||||
|
}: let
|
||||||
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
|
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
|
||||||
overrideHaskellPackages = orig: {
|
overrideHaskellPackages = orig: {
|
||||||
buildHaskellPackages =
|
buildHaskellPackages =
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
pkgs: hlib: helf: huper: {
|
pkgs: hlib: helf: huper: {
|
||||||
hnix-store-remote =
|
hnix-store-remote =
|
||||||
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { relude = helf.relude_1_0_0_1; }
|
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { }
|
||||||
).overrideAttrs (attrs: {
|
).overrideAttrs (attrs: {
|
||||||
buildInputs = attrs.buildInputs ++ [
|
buildInputs = attrs.buildInputs ++ [
|
||||||
pkgs.nix
|
pkgs.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user