mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-09 13:23:10 +00:00
Add github actions CI workflow
This commit is contained in:
37
.github/workflows/ci.yml
vendored
Normal file
37
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
on:
|
||||
# Trigger the workflow on push or
|
||||
# pull request, but only for the
|
||||
# master branch.
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
# Weekly run to account for
|
||||
# changed dependencies.
|
||||
schedule:
|
||||
- cron: '17 04 * * 0'
|
||||
|
||||
name: CI
|
||||
jobs:
|
||||
build:
|
||||
name: Build and test
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
compiler: ['gcc', 'clang']
|
||||
fail-fast: false
|
||||
env:
|
||||
CC: ${{ matrix.compiler }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build the code
|
||||
run: make
|
||||
|
||||
- name: Test creating the release archive
|
||||
run: make distcheck
|
||||
Reference in New Issue
Block a user