File: traits.yml

package info (click to toggle)
scitokens-cpp 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 832 kB
  • sloc: cpp: 7,897; ansic: 596; makefile: 14
file content (85 lines) | stat: -rw-r--r-- 2,814 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Traits CI

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  traits:
    name: Traits (${{ matrix.target.name }})
    runs-on: ubuntu-latest
    strategy:
      matrix:
        target:
          - { name: "danielaparker-jsoncons", tag: "0.168.7", version: "v0.168.7" }
          - { name: "boost-json", tag: "1.78.0", version: "v1.80.0" }
          - { name: "nlohmann-json", tag: "3.11.2", version: "v3.11.2" }
          - { name: "kazuho-picojson", tag: "111c9be5188f7350c2eac9ddaedd8cca3d7bf394", version: "111c9be" }
          - { name: "open-source-parsers-jsoncpp", tag: "1.9.5", version: "v1.9.5" }
    steps:
      - uses: actions/checkout@v4
      - uses: lukka/get-cmake@latest
      - name: setup
        run: |
          mkdir build
          cd build
          cmake .. -DJWT_BUILD_EXAMPLES=OFF
          sudo cmake --install .

      # Install the JSON library
      - if: matrix.target.name == 'danielaparker-jsoncons'
        uses: ./.github/actions/install/danielaparker-jsoncons
        with:
          version: ${{matrix.target.tag}}

      - if: matrix.target.name == 'boost-json'
        uses: ./.github/actions/install/boost-json
        with:
          version: ${{matrix.target.tag}}

      - if: matrix.target.name == 'nlohmann-json'
        uses: ./.github/actions/install/nlohmann-json
        with:
          version: ${{matrix.target.tag}}

      - if: matrix.target.name == 'kazuho-picojson'
        run: rm -rf include/picojson
      - if: matrix.target.name == 'kazuho-picojson'
        uses: ./.github/actions/install/kazuho-picojson
        with:
          version: ${{matrix.target.tag}}

      - if: matrix.target.name == 'open-source-parsers-jsoncpp'
        uses: ./.github/actions/install/open-source-parsers-jsoncpp
        with:
          version: ${{matrix.target.tag}}

      - name: test
        working-directory: example/traits
        run: |
          cmake . -DCMAKE_FIND_DEBUG_MODE=1
          cmake --build . --target ${{ matrix.target.name }}
          ./${{ matrix.target.name }}

      - name: badge success
        if: github.event_name == 'push' && success()
        uses: ./.github/actions/badge/write
        with:
          category: traits
          label: ${{ matrix.target.name }}
          message: ${{ matrix.target.version }}
          color: lightblue # turquoise
      - name: badge failure
        if: github.event_name == 'push' && !success()
        uses: ./.github/actions/badge/write
        with:
          category: traits
          label: ${{ matrix.target.name }}
          message: ${{ matrix.target.version }}
          color: orange
      - if: github.event_name == 'push' && always()
        uses: ./.github/actions/badge/publish
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}