Skip to content

[build] Handle unrecognised file name extensions for c_sources #679

[build] Handle unrecognised file name extensions for c_sources

[build] Handle unrecognised file name extensions for c_sources #679

Workflow file for this run

#
# This is free and unencumbered software released into the public domain.
# See ../LICENSE.unlicense
#
# This workflow controls Plasma's continious integration. See documentation
# for github workflows:
#
# * https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-and-managing-workflow-files-and-runs
# * https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
# And the action we use is here:
# * https://github.com/PlasmaLang/ci
name: CI
on: [push, pull_request]
jobs:
test:
name: Test (${{ matrix.buildType }} ${{ matrix.c }})
runs-on: ubuntu-latest
strategy:
matrix:
c: [gcc, clang]
buildType: [dev, rel]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
uses: PlasmaLang/ci/stable@v2_1
with:
command: setup
c: ${{ matrix.c }}
buildType: ${{ matrix.buildType }}
- name: build
uses: PlasmaLang/ci/stable@v2_1
with:
command: build
- name: test
uses: PlasmaLang/ci/stable@v2_1
with:
command: test
- name: gctest
uses: PlasmaLang/ci/stable@v2_1
if: matrix.buildType == 'dev'
with:
command: gctest
- name: copy-results
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results ${{ matrix.buildType }} ${{ matrix.c }}
path: .
retention-days: 7
docs:
name: Build docs
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2
- name: docs
uses: PlasmaLang/ci/docs@v1
lint:
name: Lint (${{ matrix.buildType }})
runs-on: ubuntu-latest
strategy:
matrix:
buildType: [dev, rel]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
uses: PlasmaLang/ci/stable@v2_1
with:
command: setup
c: clang
buildType: ${{ matrix.buildType }}
lint: lint
- name: build
uses: PlasmaLang/ci/stable@v2_1
with:
command: build
- name: extra
uses: PlasmaLang/ci/stable@v2_1
with:
command: extra