forked from IntersectMBO/cardano-node
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.58 KB
/
check-mainnet-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Check mainnet configuration
on:
push:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
# Use last stable nixos channel and the same nix as in channel:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
allow-import-from-derivation = true
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: actions/checkout@v3
- name: Refresh cardano-node mainnet configuration
run: |
nix build --no-update-lock-file .#hydraJobs.cardano-deployment
SOURCE=$(pwd)/result
TARGET=$(pwd)/configuration/cardano
copyFile() {
echo $1
cp ${SOURCE}/$1 ${TARGET}/$1
}
copyFile "mainnet-alonzo-genesis.json"
copyFile "mainnet-byron-genesis.json"
copyFile "mainnet-conway-genesis.json"
copyFile "mainnet-config.json"
copyFile "mainnet-shelley-genesis.json"
copyFile "mainnet-topology.json"
- name: Check mainnet for mainnet configuration differences
run: |
git diff --exit-code