upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: e22b5a46434130d699a45cc09131fbde80e8996f (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI

on:
  push:
  pull_request:

permissions:
  contents: read

concurrency:
  group: ci-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  linux-headless:
    name: Linux headless selftests
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v5

      - name: Install Linux dependencies
        run: make deps-linux

      - name: Run Linux selftests
        run: make tests

      - name: Run Python tool regressions
        run: python3 tests/scripts/test_bitflash_tools.py

      - name: Run P2P message fuzz smoke
        run: make fuzz-net-message-smoke

      - name: Run script fuzz smoke
        run: make fuzz-script-smoke

  windows-ucrt64:
    name: Windows UCRT64 selftests
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - name: Check out repository
        uses: actions/checkout@v5

      - name: Set up MSYS2
        uses: msys2/setup-msys2@v2
        with:
          msystem: UCRT64
          update: true
          install: >-
            git
            make
            mingw-w64-ucrt-x86_64-gcc
            mingw-w64-ucrt-x86_64-glfw
            mingw-w64-ucrt-x86_64-openssl
            mingw-w64-ucrt-x86_64-db
            mingw-w64-ucrt-x86_64-sqlite3
            mingw-w64-ucrt-x86_64-libsodium
            mingw-w64-ucrt-x86_64-nlohmann-json
            mingw-w64-ucrt-x86_64-boost
            mingw-w64-ucrt-x86_64-cmake
            autoconf
            automake
            libtool

      - name: Build Windows dependencies
        run: make deps-windows

      - name: Run Windows selftests
        run: cd src && make -f makefile.mingw tests