|
| 1 | +name: temp i386 |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +jobs: |
| 14 | + test: |
| 15 | + env: |
| 16 | + NIMBLE_COMMIT: 42ef70c2102a942c46f13eb76872326edd525cec # v0.22.3 |
| 17 | + timeout-minutes: 120 |
| 18 | + strategy: |
| 19 | + fail-fast: false |
| 20 | + matrix: |
| 21 | + nim: |
| 22 | + - ref: v2.2.10 |
| 23 | + memory_management: orc |
| 24 | + |
| 25 | + defaults: |
| 26 | + run: |
| 27 | + shell: bash |
| 28 | + |
| 29 | + name: "linux-i386 test_gossipsub_message_handling" |
| 30 | + runs-on: ubuntu-22.04 |
| 31 | + steps: |
| 32 | + - name: Checkout |
| 33 | + uses: actions/checkout@v6 |
| 34 | + with: |
| 35 | + submodules: true |
| 36 | + |
| 37 | + - name: Select Nimble version |
| 38 | + if: matrix.nim.nimble_commit != '' |
| 39 | + shell: bash |
| 40 | + run: echo "NIMBLE_COMMIT=${{ matrix.nim.nimble_commit }}" >> $GITHUB_ENV |
| 41 | + |
| 42 | + - name: Setup Nim |
| 43 | + uses: "./.github/actions/install_nim" |
| 44 | + with: |
| 45 | + os: linux |
| 46 | + cpu: i386 |
| 47 | + shell: bash |
| 48 | + nim_ref: ${{ matrix.nim.ref }} |
| 49 | + |
| 50 | + - name: Restore deps from cache |
| 51 | + id: deps-cache |
| 52 | + uses: actions/cache@v5 |
| 53 | + with: |
| 54 | + path: | |
| 55 | + nimbledeps |
| 56 | + tests/nimbledeps |
| 57 | + key: nimbledeps-linux-i386-gcc-${{ hashFiles('.pinned', 'tests/.pinned') }} |
| 58 | + |
| 59 | + - name: Install deps |
| 60 | + if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }} |
| 61 | + run: | |
| 62 | + nimble install_pinned |
| 63 | + cd tests && nimble install_pinned |
| 64 | +
|
| 65 | + - name: Build prerequisites |
| 66 | + run: make nimble.paths tests/nimble.paths |
| 67 | + |
| 68 | + - name: Compile test_gossipsub_message_handling |
| 69 | + id: compile-test |
| 70 | + run: | |
| 71 | + nim --version |
| 72 | + nimble --version |
| 73 | + gcc --version |
| 74 | +
|
| 75 | + nim c --styleCheck:usages --styleCheck:error --verbosity:0 --skipUserCfg --opt:speed --mm:orc --threads:on \ |
| 76 | + -d:path=libp2p/pubsub/component/test_gossipsub_message_handling \ |
| 77 | + tests/test_all.nim |
| 78 | +
|
| 79 | + - name: Run (1/5) |
| 80 | + run: ./tests/test_all --output-level=VERBOSE --console |
| 81 | + |
| 82 | + - name: Run (2/5) |
| 83 | + run: ./tests/test_all --output-level=VERBOSE --console |
| 84 | + |
| 85 | + - name: Run (3/5) |
| 86 | + run: ./tests/test_all --output-level=VERBOSE --console |
| 87 | + |
| 88 | + - name: Run (4/5) |
| 89 | + run: ./tests/test_all --output-level=VERBOSE --console |
| 90 | + |
| 91 | + - name: Run (5/5) |
| 92 | + run: ./tests/test_all --output-level=VERBOSE --console |
0 commit comments