forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (28 loc) · 1.11 KB
/
ci-linux-aarch64.yml
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
name: "Linux CI (Arm)"
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: "aarch64 CI"
steps:
- name: Checkout code
uses: actions/checkout@v3
# Declares the repository safe and not under dubious ownership.
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: aarch64
distro: ubuntu20.04
run: |
uname -a
echo ::set-output name=uname::$(uname -a)
apt-get -y update && apt-get install -y --no-install-recommends git gcc g++ cmake ninja-build libssl-dev libcurl4-openssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev
mkdir ci && cd ci && git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build
cmake -GNinja .. -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE
cmake --build . --target install
ctest --output-on-failure