-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.67 KB
/
Copy pathaarch64-alpine-linux.yml
File metadata and controls
52 lines (48 loc) · 1.67 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: aarch64-alpine-linux
on: [push, pull_request]
jobs:
setup-aarch64-alpine-linux:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-aarch64 .
build-aarch64-alpine-linux:
runs-on: ubuntu-24.04-arm
needs: setup-aarch64-alpine-linux
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-aarch64 .
- name: Build
run: |
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
sh -c "mkdir -p build && cd build && \
cmake -DTARGET=aarch64-pc-linux-gnu \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_SYSTEM_NAME=Linux \
.. && \
cmake --build ."
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-aarch64-alpine-linux
path: build/
test-aarch64-alpine-linux:
runs-on: ubuntu-24.04-arm
needs: build-aarch64-alpine-linux
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-aarch64-alpine-linux
path: build/
- name: Restore execute permissions
run: chmod +x build/bin/*
- name: Build Docker image
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-aarch64 .
- name: Run Tests
run: |
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
sh -c "cd build && ctest --output-on-failure"