|
| 1 | +name: JSROOT CI Old |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - "7.7" |
| 7 | + - "7.8" |
| 8 | + |
| 9 | +jobs: |
| 10 | + build-ubuntu: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + node-version: [18.x, 20.x] |
| 16 | + cxx: [g++-11, g++-12, g++-13] |
| 17 | + |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + - name: Use Node.js ${{ matrix.node-version }} |
| 21 | + uses: actions/setup-node@v4 |
| 22 | + with: |
| 23 | + node-version: ${{ matrix.node-version }} |
| 24 | + cache: 'npm' |
| 25 | + |
| 26 | + - name: Set up C++ compiler (Ubuntu) |
| 27 | + run: | |
| 28 | + sudo apt-get update |
| 29 | + sudo apt-get install -y ${{ matrix.cxx }} |
| 30 | + sudo apt-get install -y xutils-dev libxi-dev libxxf86vm-dev x11proto-xf86vidmode-dev mesa-utils xvfb libgl1-mesa-dri libglapi-mesa libosmesa6 musl-dev libgl1-mesa-dev |
| 31 | + sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config |
| 32 | + echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV |
| 33 | +
|
| 34 | + - name: Install dependencies |
| 35 | + run: | |
| 36 | + npm ci |
| 37 | + npm install gl --no-save |
| 38 | +
|
| 39 | + - name: Run eslint |
| 40 | + run: | |
| 41 | + npm run check |
| 42 | +
|
| 43 | + - name: Build jsroot.js |
| 44 | + run: | |
| 45 | + npm run build |
| 46 | +
|
| 47 | + - name: Run demos |
| 48 | + run: | |
| 49 | + cd demo/node; npm install; cd ../.. |
| 50 | + xvfb-run -s "-ac -screen 0 1280x1024x24" node demo/node/makesvg.js |
| 51 | + node demo/node/tree_dump.js |
| 52 | + node demo/node/tree_draw.js |
| 53 | + xvfb-run -s "-ac -screen 0 1280x1024x24" node demo/node/geomsvg.js |
| 54 | + node demo/node/selector.js |
| 55 | + cd demo/node; xvfb-run -s "-ac -screen 0 1280x1024x24" node make_image.js |
| 56 | +
|
| 57 | + tests_ubuntu: |
| 58 | + runs-on: ubuntu-latest |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + node-version: [18.x, 20.x] |
| 62 | + steps: |
| 63 | + - name: Checkout jsroot |
| 64 | + uses: actions/checkout@v4 |
| 65 | + with: |
| 66 | + path: 'jsroot' |
| 67 | + |
| 68 | + - name: Checkout jsroot-test repo |
| 69 | + uses: actions/checkout@v4 |
| 70 | + with: |
| 71 | + repository: 'linev/jsroot-test' |
| 72 | + ref: '${{ github.ref }}' |
| 73 | + path: 'jsroot-test' |
| 74 | + |
| 75 | + - name: Show jsroot status |
| 76 | + run: | |
| 77 | + cd jsroot |
| 78 | + git status |
| 79 | +
|
| 80 | + - name: Show jsroot-test status |
| 81 | + run: | |
| 82 | + cd jsroot-test |
| 83 | + git status |
| 84 | +
|
| 85 | + - name: Install System Dependencies for headless-gl |
| 86 | + run: | |
| 87 | + sudo apt-get update |
| 88 | + sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev xvfb |
| 89 | +
|
| 90 | + - name: Dependencies jsroot |
| 91 | + run: | |
| 92 | + cd jsroot |
| 93 | + npm ci |
| 94 | + npm install gl --no-save |
| 95 | +
|
| 96 | + - name: Dependencies jsroot-test |
| 97 | + run: | |
| 98 | + cd jsroot-test |
| 99 | + npm install |
| 100 | +
|
| 101 | + - name: Run all tests |
| 102 | + run: | |
| 103 | + cd jsroot-test |
| 104 | + xvfb-run -s "-ac -screen 0 1280x1024x24" node test.js -c -m -p |
| 105 | +
|
| 106 | + build-macos: |
| 107 | + runs-on: macos-latest |
| 108 | + strategy: |
| 109 | + fail-fast: false |
| 110 | + matrix: |
| 111 | + node-version: [18.x, 20.x] |
| 112 | + |
| 113 | + steps: |
| 114 | + - uses: actions/checkout@v4 |
| 115 | + - name: Use Node.js ${{ matrix.node-version }} |
| 116 | + uses: actions/setup-node@v4 |
| 117 | + with: |
| 118 | + node-version: ${{ matrix.node-version }} |
| 119 | + cache: 'npm' |
| 120 | + |
| 121 | + - name: Configure xcode usage |
| 122 | + uses: maxim-lobanov/setup-xcode@v1 |
| 123 | + with: |
| 124 | + xcode-version: latest-stable |
| 125 | + |
| 126 | + - name: Set up C++ compiler (macOS) |
| 127 | + run: | |
| 128 | + echo "CXX=clang++" >> $GITHUB_ENV |
| 129 | +
|
| 130 | + - name: Install dependencies |
| 131 | + run: | |
| 132 | + brew install python-setuptools pango librsvg |
| 133 | + npm ci |
| 134 | + npm install gl --no-save |
| 135 | +
|
| 136 | + - name: Run eslint |
| 137 | + run: | |
| 138 | + npm run check |
| 139 | +
|
| 140 | + - name: Build jsroot.js |
| 141 | + run: | |
| 142 | + npm run build |
| 143 | +
|
| 144 | + - name: Run demos |
| 145 | + run: | |
| 146 | + cd demo/node; npm install; cd ../.. |
| 147 | + node demo/node/makesvg.js |
| 148 | + node demo/node/tree_dump.js |
| 149 | + node demo/node/tree_draw.js |
| 150 | + node demo/node/selector.js |
| 151 | + cd demo/node; node make_image.js |
| 152 | +
|
| 153 | + build-windows: |
| 154 | + runs-on: windows-latest |
| 155 | + strategy: |
| 156 | + fail-fast: false |
| 157 | + matrix: |
| 158 | + node-version: [18.x, 20.x] |
| 159 | + |
| 160 | + steps: |
| 161 | + - uses: actions/checkout@v4 |
| 162 | + - name: Use Node.js ${{ matrix.node-version }} |
| 163 | + uses: actions/setup-node@v4 |
| 164 | + with: |
| 165 | + node-version: ${{ matrix.node-version }} |
| 166 | + cache: 'npm' |
| 167 | + |
| 168 | + - name: Set up C++ compiler (Windows) |
| 169 | + run: | |
| 170 | + echo "CXX=cl" >> $GITHUB_ENV |
| 171 | +
|
| 172 | + - name: Install dependencies |
| 173 | + run: | |
| 174 | + npm install |
| 175 | + npm install gl --no-save |
| 176 | +
|
| 177 | + - name: Run eslint |
| 178 | + run: | |
| 179 | + npm run check |
| 180 | +
|
| 181 | + - name: Build jsroot.js |
| 182 | + run: | |
| 183 | + npm run build |
| 184 | +
|
| 185 | + - name: Run demos |
| 186 | + run: | |
| 187 | + cd demo/node; npm install; cd ../.. |
| 188 | + node demo/node/makesvg.js |
| 189 | + node demo/node/tree_dump.js |
| 190 | + node demo/node/tree_draw.js |
| 191 | + node demo/node/geomsvg.js |
| 192 | + node demo/node/selector.js |
| 193 | + cd demo/node; node make_image.js |
0 commit comments