Build and Test (Arch Linux) #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Arch Linux Build | |
| 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 | |
| " | |