Add riscv64 to supported hardware list #384
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: topology | |
| on: | |
| push: | |
| branches: [ main, 'v1.*' ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
| jobs: | |
| build-and-test: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| PRESET: [clang-linux-debug] | |
| WORK_ITEM: [CORO] | |
| steps: | |
| - name: install-hwloc | |
| run: sudo apt-get update && sudo apt-get install -y hwloc libhwloc-dev | |
| - name: lstopo | |
| run: lstopo | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: tzcnt/tmc-examples | |
| ref: main | |
| - name: branch-examples | |
| continue-on-error: true | |
| run: git fetch --tags && git checkout ${{env.BRANCH_NAME}} | |
| - name: submodule-clone | |
| run: > | |
| cd submodules | |
| && git clone https://github.com/tzcnt/TooManyCooks.git | |
| # If a branch with the same name exists in the dependency repos, use that. Otherwise, use main. | |
| - name: submodule-branch-TMC | |
| # continue-on-error: true # this should never fail if triggered from TMC workflow | |
| run: cd submodules/TooManyCooks && git fetch && git checkout ${{env.BRANCH_NAME}} | |
| - name: configure | |
| run: cmake -G "Unix Makefiles" -DTMC_AS_SUBMODULE=ON -DTMC_COPY_COMPILE_COMMANDS=OFF -DTMC_WORK_ITEM=${{matrix.WORK_ITEM}} -DCMD_COMPILE_FLAGS='-Werror' --preset ${{matrix.PRESET}} . | |
| - name: build | |
| run: cmake --build ./build/${{matrix.PRESET}} --parallel $(nproc) --target hwloc_topo | |
| - name: run tests | |
| run: ./build/${{matrix.PRESET}}/hwloc_topo |