mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-25 22:13:12 +00:00
fix/github-actions-mac-linux (#67)
This commit is contained in:
+27
-18
@@ -7,25 +7,34 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
- { NPROC: 2 }
|
||||
- { NPROC: 6 }
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
env:
|
||||
- { NPROC: 2 }
|
||||
- { NPROC: 6 }
|
||||
platform: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
env: ${{ matrix.env }}
|
||||
|
||||
runs-on: [ubuntu-latest, macos-latest]
|
||||
name: ${{ matrix.platform }} - ${{ matrix.env.NPROC }} processes
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache Nim
|
||||
id: cache-choosenim
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: vendor/nimbus-build-system/vendor/Nim/bin
|
||||
key: ${{ runner.os }}-nim-${{ hashFiles(vendor/nimbus-build-system/) }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
|
||||
- name: Cache Nim
|
||||
id: cache-nim
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: vendor/nimbus-build-system/vendor/Nim/bin
|
||||
key: ${{ runner.os }}-nim-${{ hashFiles('.gitmodules') }}
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
|
||||
|
||||
Reference in New Issue
Block a user