Add parsing docs
Test and Deploy / test (push) Successful in 11s Details
Test and Deploy / docs (push) Successful in 14s Details

This commit is contained in:
Evan Burkey 2024-04-10 17:37:29 -07:00
parent 77d4c11054
commit 93029e5c52
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,10 @@
--- ---
name: On Master Push name: Test and Deploy
on: on:
push: push:
branch: branches:
- master - master
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -12,10 +13,12 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libbsd-dev cmake build-essential sudo apt-get install -y libbsd-dev cmake build-essential
- name: Build and test - name: Build and test
run: | run: |
mkdir build mkdir build
@ -23,16 +26,19 @@ jobs:
cmake .. cmake ..
make make
./tests ./tests
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install SSH client - name: Install SSH client
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y openssh-client sudo apt-get install -y openssh-client
- name: Setup SSH - name: Setup SSH
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
@ -41,12 +47,15 @@ jobs:
chmod -R 700 ~/.ssh chmod -R 700 ~/.ssh
eval "$(ssh-agent -s)" eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa ssh-add ~/.ssh/id_rsa
- name: Install mkdocs - name: Install mkdocs
run: | run: |
pip install mkdocs pip install mkdocs
- name: Build documentation - name: Build documentation
run: | run: |
mkdocs build mkdocs build
- name: Deploy documentation - name: Deploy documentation
run: | run: |
ssh debian@burkey.co "rm -rf /var/www/burkey.co/docs/libflint" ssh debian@burkey.co "rm -rf /var/www/burkey.co/docs/libflint"

View File

@ -12,6 +12,7 @@ nav:
- 'Linked List': 'linkedlist.md' - 'Linked List': 'linkedlist.md'
- 'Math': 'math.md' - 'Math': 'math.md'
- 'macOS': 'macos.md' - 'macOS': 'macos.md'
- 'Parsing': 'parsing.md'
- 'Set': 'set.md' - 'Set': 'set.md'
- 'Stack': 'stack.md' - 'Stack': 'stack.md'
- 'String': 'string.md' - 'String': 'string.md'