Update.
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential sqlite3 libsqlite3-dev
|
||||
|
||||
- name: Build library
|
||||
run: make build-lib
|
||||
|
||||
- name: Build tools
|
||||
run: make build-tools
|
||||
|
||||
- name: Check binaries exist
|
||||
run: |
|
||||
test -f build/bin/tikker-decoder
|
||||
test -f build/bin/tikker-indexer
|
||||
test -f build/bin/tikker-aggregator
|
||||
test -f build/bin/tikker-report
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
brew install sqlite3
|
||||
|
||||
- name: Build library
|
||||
run: make build-lib
|
||||
|
||||
- name: Build tools
|
||||
run: make build-tools
|
||||
|
||||
- name: Check binaries exist
|
||||
run: |
|
||||
test -f build/bin/tikker-decoder
|
||||
test -f build/bin/tikker-indexer
|
||||
test -f build/bin/tikker-aggregator
|
||||
test -f build/bin/tikker-report
|
||||
|
||||
build-clang:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang sqlite3 libsqlite3-dev
|
||||
|
||||
- name: Build with Clang
|
||||
run: make build-lib CC=clang
|
||||
env:
|
||||
CFLAGS: "-Wall -Wextra -pedantic -std=c11 -O2"
|
||||
Reference in New Issue
Block a user