1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00
qmckl/.github/workflows/test-build.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

name: test-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install emacs
2020-10-17 01:28:15 +02:00
- name: make
run: make -C src/
- name: build docs
run: make -C src/ doc
- name: GitHub Pages Deploy
uses: appleboy/gh-pages-action@v0.0.2
- name: checkout
uses: actions/checkout@v1
- name: deploy docs
uses: ./
with:
username: scemama
password: 7da28e533792db220a4811fc4e487b8ba817862f
remote_url: https://github.com/appleboy/gh-pages-action.git
2020-10-17 01:28:15 +02: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
- name: make
2020-10-17 01:14:57 +02:00
run: make -C src/ test