Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
ci: add build jop
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Oct 27, 2023
1 parent 48a65bf commit a7a80f0
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
MIMIR__ELASTICSEARCH__URL: 'http://es1:9200'
with:
command: llvm-cov
args: --workspace --lcov --output-path lcov.info -- --nocapture
args: --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -96,3 +96,42 @@ jobs:
command: clippy
args: -- -D warnings

build:
name: Build
needs: [lints, test]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Get lib postal
run: |
apt-get update && apt-get install -y \
autoconf automake build-essential curl git libsnappy-dev libtool pkg-config llvm-dev libclang-dev clang
git clone https://github.com/openvenues/libpostal
cd /libpostal
- name: Install libpostal
run: |
./bootstrap.sh
mkdir -p /opt/libpostal_data
./configure --datadir=/opt/libpostal_data
make -j4
make install
ldconfig
pkg-config --cflags libpostal
- name: Run cargo build
uses: actions-rs/cargo@v1
continue-on-error: false
with:
command: build
args: --all-features --release

0 comments on commit a7a80f0

Please sign in to comment.