nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

ci.yml (1251B)


      1 name: CI
      2 
      3 on: [push, pull_request]
      4 
      5 env:
      6   CTEST_OUTPUT_ON_FAILURE: 1
      7 
      8 jobs:
      9   ubuntu-ninja-clang:
     10     name: Ubuntu (ninja, clang)
     11     runs-on: ubuntu-22.04
     12     steps:
     13       - name: Prepare
     14         run: |
     15           sudo apt update
     16           sudo apt install ninja-build
     17       - uses: actions/checkout@v3
     18       - name: Build and run tests
     19         env:
     20           CC: clang
     21           CXX: clang++
     22         run: |
     23           scripts/test.sh
     24 
     25   ubuntu-make-gcc:
     26     name: Ubuntu (make, gcc)
     27     runs-on: ubuntu-22.04
     28     steps:
     29       - uses: actions/checkout@v3
     30       - name: Build and run tests
     31         env:
     32           CC: gcc
     33           CXX: g++
     34         run: |
     35           scripts/initbuild.sh make
     36           scripts/test.sh
     37 
     38   macos:
     39     name: macOS
     40     runs-on: macos-12
     41     steps:
     42       - name: Prepare
     43         run: |
     44           brew install cmake ninja
     45       - uses: actions/checkout@v3
     46       - name: Build and run tests
     47         run: |
     48           scripts/test.sh
     49 
     50   windows:
     51     name: Windows
     52     runs-on: windows-2022
     53     steps:
     54       - uses: microsoft/setup-msbuild@v1.1
     55       - uses: actions/checkout@v3
     56       - name: Build and run tests
     57         run: |
     58           cmake .
     59           msbuild FlatCC.sln /m /property:Configuration=Release
     60           ctest -VV