forked from philippe44/libraop
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.2 KB
/
build.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
name: Build libraop for all supported platforms
on:
push:
branches: [master]
workflow_dispatch:
jobs:
linux-amd64:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust-target: aarch64-unknown-linux-musl
os-arch: aarch64
env:
CROSS_SYSROOT: /mnt/alpine-${{ matrix.os-arch }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup latest Alpine Linux
uses: jirutka/setup-alpine@v1
with:
arch: ${{ matrix.os-arch }}
- name: Prepare build environment
run: |
apk add --update alpine-sdk build-base openssl-dev
git submodule update --init
shell: alpine.sh --root {0}
- name: Prepare build environment
run: |
apk add --update alpine-sdk build-base openssl-dev
git submodule update --init
- name: Build
run: |
make HOST=linux PLATFORM=${{ matrix.os-arch }}
chmod +x bin/cliraop-linux-${{ matrix.os-arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
shell: alpine.sh {0}
with:
name: cliraop-linux-${{ matrix.os-arch }}
path: releases/