forked from kushview/element
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (22 loc) · 833 Bytes
/
Copy patharchlinux.yml
File metadata and controls
28 lines (22 loc) · 833 Bytes
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
name: Build and Test (Arch Linux)
on:
workflow_dispatch:
jobs:
build-archlinux:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Arch Linux Docker image
run: docker build -f Dockerfile.archlinux -t element:archlinux .
- name: Build and test Element in Arch Linux container
run: |
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/workspace element:archlinux bash -c "
cmake -B build-arch -G Ninja -DCMAKE_BUILD_TYPE=Release -DELEMENT_BUILD_PLUGINS=ON -DELEMENT_BUILD_TESTS=ON && \
cmake --build build-arch && \
ctest --test-dir build-arch --output-on-failure
"