Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Add CI based on Github Actions #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI on Linux

on: [push, pull_request]

jobs:
build:
name: Build x86_64
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -q -y python2 libboost-all-dev

- name: Build
run: |
set -x
alias python=$(which python2)
mkdir -p build
cd build
../configure --jobs=2
make -j2
file src/c++/bin/*

build-aarch64:
name: Build aarch64
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/manta"
install: |
apt-get update -q -y
apt-get install -q -y gcc g++ python2 make cmake libboost-all-dev file
run: |
set -x
alias python=$(which python2)
cd /manta
mkdir build
cd build
../configure
make -j2
file src/c++/bin/*