-
Notifications
You must be signed in to change notification settings - Fork 49
52 lines (43 loc) · 1.12 KB
/
build-rindow-matlib.yml
File metadata and controls
52 lines (43 loc) · 1.12 KB
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
name: Build Rindow Matlib
on:
workflow_dispatch:
jobs:
build:
name: Build rindow-matlib (${{ matrix.arch }})
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runs-on: ubuntu-24.04
artifact_name: linux-x86_64
- arch: arm64
runs-on: ubuntu-24.04-arm
artifact_name: linux-arm64
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: rindow/rindow-matlib
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Build
run: |
cmake -S . -B build
cmake --build build --config Release
- name: Run tests
run: |
cd build
ctest -C Release
- name: Package
run: |
cd build
cpack -G TGZ -C Release
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: packages/*