mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-25 00:48:25 +00:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
cache_nonce: 0 # Allows for easily busting actions/cache caches
|
|
nim_version: v2.0.14
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.matrix.outputs.matrix }}
|
|
cache_nonce: ${{ env.cache_nonce }}
|
|
steps:
|
|
- name: Compute matrix
|
|
id: matrix
|
|
uses: fabiocaccamo/create-matrix-action@v5
|
|
with:
|
|
matrix: |
|
|
os {linux}, cpu {amd64}, builder {ubuntu-latest-amd64-32vcpu}, tests {integration}, nim_version {${{ env.nim_version }}}, shell {bash --noprofile --norc -e -o pipefail}
|
|
|
|
|
|
build:
|
|
needs: matrix
|
|
uses: ./.github/workflows/ci-reusable.yml
|
|
with:
|
|
matrix: ${{ needs.matrix.outputs.matrix }}
|
|
cache_nonce: ${{ needs.matrix.outputs.cache_nonce }}
|
|
|
|
linting:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Check `nph` formatting
|
|
uses: arnetheduck/nph-action@v1
|
|
with:
|
|
version: 0.6.1
|
|
options: "codex/ tests/"
|
|
fail: true
|
|
suggest: true
|
|
|