Skip to content

Commit 9a07387

Browse files
committed
Add Arch Linux GitHub Actions workflow
- Add manual workflow for building and testing on Arch Linux - Uses Docker container with Dockerfile.archlinux - Triggered via workflow_dispatch for on-demand testing
1 parent 4932008 commit 9a07387

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/archlinux.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Arch Linux Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-archlinux:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Build Arch Linux Docker image
20+
run: docker build -f Dockerfile.archlinux -t element:archlinux .
21+
22+
- name: Build and test Element in Arch Linux container
23+
run: |
24+
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/workspace element:archlinux bash -c "
25+
git config --global --add safe.directory /workspace && \
26+
git submodule update --init --recursive && \
27+
cmake -B build-arch -G Ninja -DCMAKE_BUILD_TYPE=Release -DELEMENT_BUILD_PLUGINS=ON -DELEMENT_BUILD_TESTS=ON && \
28+
cmake --build build-arch && \
29+
ctest --test-dir build-arch --output-on-failure
30+
"

0 commit comments

Comments
 (0)