mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: "Release testing, Hackage, Cabal, Linux"
|
|
|
|
on:
|
|
release:
|
|
# created: a draft is saved, or a release or pre-release is published without previously being saved as a draft
|
|
types: [ created ]
|
|
|
|
env:
|
|
cabalConfig: --enable-tests --enable-benchmarks --disable-optimization --enable-deterministic
|
|
|
|
jobs:
|
|
|
|
build10:
|
|
name: "GHC"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
# Since CI by default tests boundary GHCs, test middle versions of GHCs
|
|
ghc: [ "9.0" ]
|
|
steps:
|
|
- name: "Git checkout"
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: "Haskell env setup"
|
|
id: HaskEnvSetup
|
|
uses: haskell/actions/setup@v2
|
|
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@v25
|
|
- name: "Repository update"
|
|
run: cabal v2-update
|
|
# NOTE: Freeze is for the caching
|
|
- name: "Configuration freeze"
|
|
run: cabal v2-freeze $cabalConfig
|
|
- name: "Configuring GitHub cache"
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
${{ steps.HaskEnvSetup.outputs.cabal-store }}
|
|
dist-newstyle
|
|
key: ${{ 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: ${{ runner.os }}-Cabal-${{ matrix.ghc }}-v2-
|
|
- name: "Build"
|
|
run: cabal v2-build $cabalConfig
|
|
- name: "Tests"
|
|
run: cabal v2-test $cabalConfig
|