CI: GitHub: style clean-up
M .github/workflows/Cabal-Linux.yml M .github/workflows/On-Readme-update.yml M .github/workflows/On-Release-Cabal-Linux.yml M .github/workflows/Optional-Nix-dev-env-macOS.yml M .github/workflows/Optional-Nix-dev-env-main.yml
This commit is contained in:
parent
d9f5e009f3
commit
106dbf3b63
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build10:
|
build10:
|
||||||
name: GHC
|
name: "GHC"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle
|
- name: "Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -32,10 +32,10 @@ jobs:
|
||||||
- uses: actions/setup-haskell@v1
|
- uses: actions/setup-haskell@v1
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
- name: Install additional system packages
|
- name: "Install additional system packages"
|
||||||
run: sudo apt install libsodium-dev
|
run: sudo apt install libsodium-dev
|
||||||
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
|
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
|
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
|
||||||
- run: cabal v2-build
|
- run: cabal v2-build
|
||||||
|
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Install doctoc
|
- name: "Install doctoc"
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g doctoc
|
sudo npm install -g doctoc
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -22,10 +22,10 @@ jobs:
|
||||||
# 2020-09-29: Official doc:
|
# 2020-09-29: Official doc:
|
||||||
# "In non-push events, such as pull_request, make sure to specify the ref to checkout:'
|
# "In non-push events, such as pull_request, make sure to specify the ref to checkout:'
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- name: Generate the idenpotent TOC
|
- name: "Generate the idenpotent TOC"
|
||||||
run: |
|
run: |
|
||||||
doctoc --github --notitle README.md
|
doctoc --github --notitle README.md
|
||||||
- name: Commit and push changes
|
- name: "Commit and push changes"
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_author: "Anton Latukha <anton@latukha.com>"
|
commit_author: "Anton Latukha <anton@latukha.com>"
|
||||||
|
|
|
@ -8,7 +8,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build10:
|
build10:
|
||||||
name: GHC
|
name: "GHC"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -29,10 +29,10 @@ jobs:
|
||||||
- uses: actions/setup-haskell@v1
|
- uses: actions/setup-haskell@v1
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
- name: Install additional system packages
|
- name: "Install additional system packages"
|
||||||
run: sudo apt install libsodium-dev
|
run: sudo apt install libsodium-dev
|
||||||
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
|
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
|
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
|
||||||
- run: cabal v2-build
|
- run: cabal v2-build
|
||||||
|
|
|
@ -24,18 +24,18 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Install Cachix
|
- name: "Install Cachix"
|
||||||
uses: cachix/cachix-action@v7
|
uses: cachix/cachix-action@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ env.cachixAccount }}
|
name: ${{ env.cachixAccount }}
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: Determined Nix-build
|
- name: "Determined Nix-build"
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
|
@ -62,20 +62,20 @@ jobs:
|
||||||
# 2020-08-01: NOTE: Due to Nixpkgs brittleness to not block project development Nixpkgs made optional, see commit message for more info
|
# 2020-08-01: NOTE: Due to Nixpkgs brittleness to not block project development Nixpkgs made optional, see commit message for more info
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Install Cachix
|
- name: "Install Cachix"
|
||||||
uses: cachix/cachix-action@v7
|
uses: cachix/cachix-action@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ env.cachixAccount }}
|
name: ${{ env.cachixAccount }}
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: Determined Nix-build
|
- name: "Determined Nix-build"
|
||||||
env:
|
env:
|
||||||
compiler: "default"
|
compiler: "default"
|
||||||
buildStrictly: "true"
|
buildStrictly: "true"
|
||||||
|
@ -87,20 +87,20 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Install Cachix
|
- name: "Install Cachix"
|
||||||
uses: cachix/cachix-action@v7
|
uses: cachix/cachix-action@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ env.cachixAccount }}
|
name: ${{ env.cachixAccount }}
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: Determined Nix-build
|
- name: "Determined Nix-build"
|
||||||
env:
|
env:
|
||||||
compiler: "ghc8101"
|
compiler: "ghc8101"
|
||||||
buildFromSdist: "true"
|
buildFromSdist: "true"
|
||||||
|
@ -119,22 +119,22 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: "Git checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Nix
|
- name: "Install Nix"
|
||||||
uses: cachix/install-nix-action@v12
|
uses: cachix/install-nix-action@v12
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Install Cachix
|
- name: "Install Cachix"
|
||||||
uses: cachix/cachix-action@v7
|
uses: cachix/cachix-action@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ env.cachixAccount }}
|
name: ${{ env.cachixAccount }}
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: Nix-shell
|
- name: "Nix-shell"
|
||||||
run: nix-shell --pure --command 'echo "Evaluated, loaded and entered $IN_NIX_SHELL Nix shell env."'
|
run: nix-shell --pure --command 'echo "Evaluated, loaded and entered $IN_NIX_SHELL Nix shell env."'
|
||||||
- name: Local Hoogle DB for the project development and tooling
|
- name: "Local Hoogle DB for the project development and tooling"
|
||||||
run: nix-shell --pure --command 'hoogle True'
|
run: nix-shell --pure --command 'hoogle True'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue