Skip to content

CI: Disable SSE2 on ARM runners #65

CI: Disable SSE2 on ARM runners

CI: Disable SSE2 on ARM runners #65

Workflow file for this run

name: 'Continuous Integration'
on: [push, pull_request]
jobs:
unit-tests:
runs-on: '${{ matrix.os }}'
continue-on-error: ${{ matrix.status != 'current' }}
strategy:
fail-fast: false
matrix:
status: ['current']
os:
- ubuntu-22.04
node-version:
- 12.x
- 14.x
- 16.x
- 18.x
- 20.x
- 22.x
- 23.x
include:
- os: ubuntu-20.04
node-version: 8.x
status: 'deprecated'
- os: ubuntu-20.04
node-version: 10.x
status: 'deprecated'
- os: ubuntu-24.04-arm
node-version: 22.x
status: 'current'
steps:
- uses: actions/checkout@v4
- name: 'Install apt packages'
shell: bash
run: |
sudo apt-get update
sudo apt-get install build-essential curl autoconf automake libtool pkg-config
- name: 'Create working directories'
shell: bash
run: |
sudo mkdir -p /code /data /deps
sudo chown $USER:$USER /code /data /deps
- name: 'Install libpostal'
shell: bash
run: |
cd /code
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
CONFIGURE_FLAGS=(--datadir=/data --prefix=/deps --bindir=/deps)
if [[ $(uname -m) =~ ^(aarch64|arm64)?$ ]]; then CONFIGURE_FLAGS+=(--disable-sse2); fi
./configure "${CONFIGURE_FLAGS[@]}" || cat config.log
make -j4
make install
- name: 'Install node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v2-beta
with:
node-version: '${{ matrix.node-version }}'
- name: 'Install node-postal'
env:
CXXFLAGS: '-I/deps/include'
LDFLAGS: '-L/deps/lib'
run:
npm install
- name: 'Run unit tests'
env:
LD_LIBRARY_PATH: '/deps/lib'
run: |
npm test