Skip to content

Commit ddbccab

Browse files
committed
Add Alpine builds.
1 parent eab2ef2 commit ddbccab

29 files changed

Lines changed: 650 additions & 81 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: aarch64-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest-arm64
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Build Docker image
11+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-aarch64 .
12+
- name: Build and Test
13+
run: |
14+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
15+
bash -c "mkdir -p build && cd build && \
16+
cmake -DTARGET=aarch64-unknown-linux-musl \
17+
-DCMAKE_C_COMPILER=gcc \
18+
-DCMAKE_SYSTEM_NAME=Linux \
19+
.. && \
20+
cmake --build . && \
21+
ctest --output-on-failure"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: armv7-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up QEMU
11+
uses: docker/setup-qemu-action@v3
12+
with:
13+
platforms: arm
14+
- name: Build Docker image
15+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-armv7 .
16+
- name: Build and Test
17+
run: |
18+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
19+
bash -c "mkdir -p build && cd build && \
20+
cmake -DTARGET=arm-unknown-linux-gnueabihf \
21+
-DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc \
22+
-DCMAKE_SYSTEM_NAME=Linux \
23+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-arm \
24+
.. && \
25+
cmake --build . && \
26+
ctest --output-on-failure"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: i386-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Build Docker image
11+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-i386 .
12+
- name: Build and Test
13+
run: |
14+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
15+
bash -c "mkdir -p build && cd build && \
16+
cmake -DTARGET=i386-pc-linux-musl \
17+
-DCMAKE_C_COMPILER=gcc \
18+
-DCMAKE_C_FLAGS='-m32' \
19+
-DCMAKE_SYSTEM_NAME=Linux \
20+
.. && \
21+
cmake --build . && \
22+
ctest --output-on-failure"

.github/workflows/mips64el-unknown-linux-gnuabi64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99
- name: Build Docker image
10-
run: docker build -t yafl-builder -f docker/Dockerfile.mips .
10+
run: docker build -t yafl-builder -f docker/Dockerfile.mips64el .
1111
- name: Build and Test
1212
run: |
1313
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \

.github/workflows/mipsel-unknown-linux-gnu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99
- name: Build Docker image
10-
run: docker build -t yafl-builder -f docker/Dockerfile.mips .
10+
run: docker build -t yafl-builder -f docker/Dockerfile.mipsel .
1111
- name: Build and Test
1212
run: |
1313
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \

.github/workflows/powerpc-unknown-linux-gnu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99
- name: Build Docker image
10-
run: docker build -t yafl-builder -f docker/Dockerfile.ppc .
10+
run: docker build -t yafl-builder -f docker/Dockerfile.powerpc .
1111
- name: Build and Test
1212
run: |
1313
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \

.github/workflows/powerpc64le-unknown-linux-gnu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99
- name: Build Docker image
10-
run: docker build -t yafl-builder -f docker/Dockerfile.ppc .
10+
run: docker build -t yafl-builder -f docker/Dockerfile.powerpc64le .
1111
- name: Build and Test
1212
run: |
1313
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: ppc64le-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up QEMU
11+
uses: docker/setup-qemu-action@v3
12+
with:
13+
platforms: ppc64le
14+
- name: Build Docker image
15+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-ppc64le .
16+
- name: Build and Test
17+
run: |
18+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
19+
bash -c "mkdir -p build && cd build && \
20+
cmake -DTARGET=powerpc64le-unknown-linux-gnu \
21+
-DCMAKE_C_COMPILER=powerpc64le-linux-gnu-gcc \
22+
-DCMAKE_C_FLAGS='-static' \
23+
-DCMAKE_SYSTEM_NAME=Linux \
24+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-ppc64le \
25+
.. && \
26+
cmake --build . && \
27+
ctest --output-on-failure"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: riscv64-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up QEMU
11+
uses: docker/setup-qemu-action@v3
12+
with:
13+
platforms: riscv64
14+
- name: Build Docker image
15+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-riscv64 .
16+
- name: Build and Test
17+
run: |
18+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
19+
bash -c "mkdir -p build && cd build && \
20+
cmake -DTARGET=riscv64-unknown-linux-gnu \
21+
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc \
22+
-DCMAKE_C_FLAGS='-static' \
23+
-DCMAKE_SYSTEM_NAME=Linux \
24+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-riscv64 \
25+
.. && \
26+
cmake --build . && \
27+
ctest --output-on-failure"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: s390x-alpine-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up QEMU
11+
uses: docker/setup-qemu-action@v3
12+
with:
13+
platforms: s390x
14+
- name: Build Docker image
15+
run: docker build -t yafl-builder -f docker/Dockerfile.alpine-s390x .
16+
- name: Build and Test
17+
run: |
18+
docker run --rm -v ${{ github.workspace }}:/src yafl-builder \
19+
bash -c "mkdir -p build && cd build && \
20+
cmake -DTARGET=s390x-ibm-linux-gnu \
21+
-DCMAKE_C_COMPILER=s390x-linux-gnu-gcc \
22+
-DCMAKE_C_FLAGS='-static' \
23+
-DCMAKE_SYSTEM_NAME=Linux \
24+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-s390x \
25+
.. && \
26+
cmake --build . && \
27+
ctest --output-on-failure"

0 commit comments

Comments
 (0)