CI: add build Linux library/binary workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Linux library and binaries | |
on: | |
push: | |
branches: ["*"] | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: sudo apt update && sudo apt-get install -y git make cmake | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure | |
run: cd linux && mkdir build && cd build && cmake .. | |
- name: Build | |
run: cd linux/build && make | |
- name: Install to system | |
run: cd linux/build && sudo make install |