|
| 1 | +name: Self-hosted CI |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [ master, develop ] |
| 6 | + paths-ignore: |
| 7 | + - '**.md' |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +jobs: |
| 11 | + |
| 12 | + ######################################################################################## |
| 13 | + checkout: |
| 14 | + name: Checkout |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + machine: [x64_linux, x64_mac, arm64_linux, arm64_mac] |
| 18 | + runs-on: [self-hosted, vclust, '${{ matrix.machine }}'] |
| 19 | + |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + with: |
| 23 | + submodules: recursive |
| 24 | + - name: Get tags |
| 25 | + run: | |
| 26 | + cd ./3rd_party/clusty/libs/igraph |
| 27 | + git fetch --prune --unshallow |
| 28 | + echo exit code $? |
| 29 | + git tag --list |
| 30 | + continue-on-error: true |
| 31 | + |
| 32 | +######################################################################################## |
| 33 | + make: |
| 34 | + name: Make |
| 35 | + needs: checkout |
| 36 | + strategy: |
| 37 | + fail-fast: false |
| 38 | + matrix: |
| 39 | + machine: [x64_linux] |
| 40 | + platform: [avx2] |
| 41 | + compiler: [g++-13] |
| 42 | + leiden: [true] |
| 43 | + include: |
| 44 | + - {machine: arm64_linux, platform: arm8, compiler: g++-12, leiden: true} |
| 45 | + - {machine: x64_mac, platform: avx2, compiler: g++-13, leiden: false} |
| 46 | + - {machine: arm64_mac, platform: m1, compiler: g++-13, leiden: false} |
| 47 | + |
| 48 | + runs-on: [self-hosted, vclust, '${{ matrix.machine }}'] |
| 49 | + |
| 50 | + steps: |
| 51 | + - name: make clean |
| 52 | + run: make clean |
| 53 | + continue-on-error: true |
| 54 | + - name: make |
| 55 | + run: make -j32 CXX=${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }} LEIDEN=${{ matrix.leiden }} |
| 56 | + |
| 57 | +######################################################################################## |
| 58 | + pipeline: |
| 59 | + name: Pipeline |
| 60 | + needs: make |
| 61 | + strategy: |
| 62 | + fail-fast: false |
| 63 | + matrix: |
| 64 | + machine: [x64_linux, arm64_linux] |
| 65 | + runs-on: [self-hosted, vclust, '${{ matrix.machine }}'] |
| 66 | + |
| 67 | + steps: |
| 68 | + |
| 69 | + - name: run pipeline |
| 70 | + run: | |
| 71 | + pytest test.py |
0 commit comments