-
Notifications
You must be signed in to change notification settings - Fork 107
56 lines (48 loc) · 1.65 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on: [push, pull_request]
env:
LDC_VERSION: 1.38.0
jobs:
build:
name: Build x86_64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install build dependencies
run: |
set -x
sudo apt-get update -q -y
sudo apt-get install -q -y liblz4-dev
ARCH=$(uname -m)
wget --quiet https://github.com/ldc-developers/ldc/releases/download/v${LDC_VERSION}/ldc2-${LDC_VERSION}-linux-${ARCH}.tar.xz
tar xf ldc2-${LDC_VERSION}-linux-${ARCH}.tar.xz
echo "ldc2-${LDC_VERSION}-linux-${ARCH}/bin" >> $GITHUB_PATH
- name: Build & test
run: make -j2 VERBOSE=1 check
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}:/sambamba"
install: |
set -x
apt-get update -q -y
apt-get install -qq -y gcc g++ wget file xz-utils tar liblz4-dev make python3 libxml2-dev libz-dev
ARCH=$(uname -m)
wget --quiet https://github.com/ldc-developers/ldc/releases/download/v${{ env.LDC_VERSION }}/ldc2-${{ env.LDC_VERSION }}-linux-${ARCH}.tar.xz
tar xf ldc2-${{ env.LDC_VERSION }}-linux-${ARCH}.tar.xz
echo "export PATH=$PWD/ldc2-${{ env.LDC_VERSION }}-linux-${ARCH}/bin:$PATH" >> $HOME/.env
run: |
set -x
source $HOME/.env
cd /sambamba
make -j2 check