2020-10-15 10:14:05 +02:00
|
|
|
name: test-build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-25 18:41:55 +01:00
|
|
|
branches: [ master ]
|
2020-10-15 10:14:05 +02:00
|
|
|
pull_request:
|
2020-11-25 18:41:55 +01:00
|
|
|
branches: [ master ]
|
2020-10-15 10:14:05 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-29 00:28:46 +01:00
|
|
|
|
2020-10-15 12:17:20 +02:00
|
|
|
- name: install dependencies
|
|
|
|
run: sudo apt-get install emacs
|
2020-10-29 00:28:46 +01:00
|
|
|
|
2020-10-17 01:28:15 +02:00
|
|
|
- name: make
|
|
|
|
run: make -C src/
|
2020-10-29 00:28:46 +01:00
|
|
|
|
|
|
|
|
2020-10-17 01:28:15 +02:00
|
|
|
test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install dependencies
|
|
|
|
run: sudo apt-get install emacs
|
|
|
|
- name: Checkout submodules using a PAT
|
|
|
|
run: |
|
|
|
|
git config --file .gitmodules --get-regexp url | while read url; do
|
|
|
|
git config --file=.gitmodules $(echo "$url" | sed -E "s/git@github.com:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
|
|
|
|
done
|
|
|
|
git submodule sync
|
|
|
|
git submodule update --init --recursive
|
2020-10-15 10:14:05 +02:00
|
|
|
- name: make
|
2020-10-17 01:14:57 +02:00
|
|
|
run: make -C src/ test
|