-
Notifications
You must be signed in to change notification settings - Fork 83
45 lines (45 loc) · 1.14 KB
/
build.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
name: "Build"
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- noetic
- foxy
- humble
- iron
- jazzy
- rolling
system:
- x86_64-linux
- aarch64-linux
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
max-jobs = 2
cores = 2
extra-platforms = aarch64-linux
- uses: docker/setup-qemu-action@v2
- uses: cachix/cachix-action@v12
with:
name: ros
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
skipPush: true
- name: Cache Failed Builds
id: cache-failed-builds
uses: actions/cache@v2
with:
path: failed-builds
key: failed-builds-${{ matrix.distro }}-${{ matrix.system }}-${{ github.sha }}
restore-keys: |
failed-builds-${{ matrix.distro }}-${{ matrix.system }}-
- uses: ./.github/actions/nix-ros-build-action
with:
root-attribute: '${{ matrix.distro }}'
system: '${{ matrix.system }}'
parallelism: 2