mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-02 21:43:11 +00:00
44 lines
840 B
YAML
44 lines
840 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Check `nph` formatting
|
|
uses: arnetheduck/nph-action@v1
|
|
with:
|
|
version: 0.6.1
|
|
options: "./"
|
|
fail: true
|
|
suggest: true
|
|
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
nim: [2.2.4]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Build Nim and dependencies
|
|
run: |
|
|
which gcc
|
|
gcc --version
|
|
make -j${ncpu} update
|
|
./env.sh nim --version
|
|
make -j${ncpu}
|
|
|
|
- name: Run tests
|
|
run: |
|
|
make -j${ncpu} test
|
|
|
|
- name: Build crawler
|
|
run: |
|
|
make -j${ncpu}
|