Skip to content

Use CMakeLists.txt instead of Makefile #17

Use CMakeLists.txt instead of Makefile

Use CMakeLists.txt instead of Makefile #17

Workflow file for this run

name: Docker Build and Test
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
load: true
tags: build_test:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Docker container
run: docker run --rm build_test -h