Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pnordahl/rust-postal
Browse files Browse the repository at this point in the history
  • Loading branch information
pnordahl committed Jul 13, 2022
2 parents ea8676c + 34e644d commit b5e21fe
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 37 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Rust

on:
push:
branches:
- main
pull_request:
branches:
- '*'

env:
CARGO_TERM_COLOR: always

jobs:
rust-postal:
name: rust-postal
runs-on: ubuntu-latest
steps:
- name: prep
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}
- name: deps
uses: actions/checkout@v2

- name: libpostal
run: |
sudo apt-get update
sudo apt-cache search gcc
sudo apt-get install -y gcc-11 libsnappy-dev manpages-fr-extra pkg-config
gcc --version
export CC="gcc-11"
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=$(pwd)/data
sudo make install
cd ..
sudo ldconfig
- name: rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: check
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: check
args: --verbose --all

- name: build
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --verbose --all

- name: test
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: test
args: --verbose --all -- --test-threads 1

- name: bench
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: bench


37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

0 comments on commit b5e21fe

Please sign in to comment.