udp2p: basic setup #9
This file contains 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: build | |
on: [push, pull_request, workflow_dispatch] | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: "MTRX (Arch)" | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux | |
steps: | |
- name: Checkout repository actions | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: .github/actions | |
- name: Setup base | |
run: | | |
pacman --noconfirm --noprogressbar -Syyu | |
pacman --noconfirm --noprogressbar -Sy \ | |
base-devel clang gcc meson | |
- name: Meson download | |
run: meson subprojects download | |
- name: Meson setup | |
run: meson setup build --buildtype release | |
- name: Check (clang-format) | |
run: ninja -C build clang-format-check | |
- name: Build | |
run: ninja -C build | |
- name: Test | |
run: ninja -C build test |