Skip to content

Update docs workflow #23

Update docs workflow

Update docs workflow #23

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build_lib:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Build library
run: make libcevicp.a OPT=RELEASE
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: libcevicp.a
path: libcevicp.a
retention-days: 1
test:
runs-on: ubuntu-22.04
needs: build_lib
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download library
uses: actions/download-artifact@v4
with:
name: libcevicp.a
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Install simple-test
run: |
git clone https://github.com/cornellev/simple-test
cd simple-test
sudo make install
- name: Run tests
run: make test OPT=RELEASE
bench:
runs-on: ubuntu-22.04
needs: build_lib
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download library
uses: actions/download-artifact@v4
with:
name: libcevicp.a
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Install SDL2
run: sudo apt-get install libsdl2-dev
- name: Install sdl-wrapper
run: |
git clone https://github.com/cornellev/sdl-wrapper.git
cd sdl-wrapper
sudo make install
- name: Install libcmdapp2
run: |
git clone https://github.com/cornellev/libcmdapp2.git
cd libcmdapp2
sudo make install
- name: Install libconfig
run: |
git clone https://github.com/cornellev/config
cd config
sudo make install
- name: Run benchmarks
run: make bench OPT=RELEASE