forked from veeam/blksnap
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.68 KB
/
build-other-archs.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test build on other archs
on:
push:
branches:
- "*"
paths:
- "include/**"
- "lib/**"
- "tests/**"
- "tools/**"
pull_request:
branches:
- "*"
paths:
- "include/**"
- "lib/**"
- "tests/**"
- "tools/**"
workflow_dispatch:
jobs:
build_job:
# The host should always be linux
runs-on: ubuntu-22.04
name: ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
- arch: ppc64le
- arch: s390x
- arch: armv7
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Build
id: build
with:
arch: ${{ matrix.arch }}
distro: bullseye
# Not required, but speeds up builds
githubToken: ${{ github.token }}
# The shell to run commands with in the container
shell: /bin/sh
# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
apt-get update -q -y
apt-get install -q -y g++ cmake uuid-dev libboost-program-options-dev libboost-filesystem-dev libssl-dev
# Build blksnap-dev, blksnap-tools and blksnap-tests
run: |
cmake .
make