Skip to content

Commit 8520260

Browse files
tmcgilchristerikd
authored andcommitted
Rename macOS and validate building instructions on macOS.
1 parent ba32cfd commit 8520260

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/haskell.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sudo apt-get install -y libpq-dev libpq5 net-tools postgresql
3737
sudo pg_ctlcluster 14 main start
3838
39-
- name: Install Postgres support (MacOS)
39+
- name: Install Postgres support (macOS)
4040
if: matrix.os == 'macos-latest'
4141
run: |
4242
brew install postgres libpq [email protected]
@@ -70,8 +70,7 @@ jobs:
7070
if: matrix.os == 'ubuntu-latest'
7171
run: |
7272
sudo apt-get update
73-
sudo apt-get -y install libsodium23 libsodium-dev
74-
sudo apt-get -y install libsystemd0 libsystemd-dev
73+
sudo apt-get -y install libsodium23 libsodium-dev libsystemd0 libsystemd-dev
7574
sudo apt-get -y remove --purge software-properties-common
7675
sudo apt-get -y autoremove
7776
@@ -81,7 +80,7 @@ jobs:
8180
sudo apt-get -y install autoconf automake libtool
8281
./scripts/secp256k1-setup.sh $SECP256K1_REF
8382
84-
- name: Install secp256k1 (MacOS)
83+
- name: Install secp256k1 (macOS)
8584
if: matrix.os == 'macos-latest'
8685
run: |
8786
brew install autoconf automake libtool
@@ -91,7 +90,7 @@ jobs:
9190
run: cabal update
9291

9392
- name: Cabal Configure
94-
run: cabal configure --write-ghc-environment-files=always
93+
run: cabal configure --enable-tests --write-ghc-environment-files=always
9594

9695
- name: Configure to use libsodium
9796
run: |
@@ -117,7 +116,7 @@ jobs:
117116
if: matrix.os == 'ubuntu-latest'
118117
run: cabal build all --only-dependencies
119118

120-
- name: Build dependencies OSX
119+
- name: Build dependencies macOS
121120
if: matrix.os == 'macos-latest'
122121
run: |
123122
PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" cabal build all --only-dependencies

doc/building-running.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
**Validated: 2020/02/19**
1+
**Validated: 2022/08/20**
22

33
# Building and Running the Cardano DB Sync Node
44

5-
The cardano-db-sync node is built and tested to run on Linux. It may run on Mac OS X or Windows but
5+
The cardano-db-sync node is built and tested to run on Linux. It may run on macOS or Windows but
66
that is unsupported.
77

88
Running the db sync node will require Nix and either multiple terminals or a multi terminal
@@ -47,7 +47,7 @@ nix-build -A scripts.mainnet.node -o mainnet-node-local
4747
# On Linux
4848
sudo make install
4949

50-
# On OSX
50+
# On macOS
5151
make install
5252

5353
```
@@ -75,6 +75,10 @@ find . -name cardano-db-sync -executable -type f
7575
./dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-db-sync-12.0.0/build/cardano-db-sync/cardano-db-sync
7676
```
7777

78+
On macOS `brew install postgresl [email protected]` and extend PKG_CONFIG_PATH with
79+
`PKG_CONFIG_PATH=/usr/local/opt/postgresql/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig cabal build all`
80+
when running cabal build
81+
7882
- with nix:
7983

8084
```

0 commit comments

Comments
 (0)