Skip to content

Commit

Permalink
github-actions: replace autotools by cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
marckleinebudde committed May 28, 2024
1 parent 64ec89b commit 0b95e57
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/autotools.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: compile

on: [push, pull_request]

jobs:
stable:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
release:
- "ubuntu:20.04"
- "ubuntu:22.04"
- "ubuntu:24.04"
- "debian:oldstable"
- "debian:stable"
- "debian:testing"
- "debian:unstable"

steps:
- uses: actions/checkout@v4

- name: Prepare ${{ matrix.release }} container
run: |
podman version
podman run --name stable -di --userns=keep-id:uid=1000,gid=1000 -v "$PWD":/home -w /home ${{ matrix.release }} bash
podman exec -i stable uname -a
podman exec -i stable id
podman exec -i -u root stable apt-get update
podman exec -e DEBIAN_FRONTEND='noninteractive' -i -u root stable apt-get install -qy gcc clang cmake ninja-build
- name: Configure & Build with gcc
run: |
podman exec -i stable rm -rf build
podman exec -i stable cmake -DCMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc -B build
podman exec -i stable cmake --build build
- name: Configure & Build with clang
run: |
podman exec -i stable rm -rf build
podman exec -i stable cmake -DCMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=clang -B build
podman exec -i stable cmake --build build

0 comments on commit 0b95e57

Please sign in to comment.