From 183c8a64ce9262787178639394c700249d4c3823 Mon Sep 17 00:00:00 2001 From: John Baublitz Date: Wed, 18 Sep 2024 14:34:08 -0400 Subject: [PATCH] Add target to Makefile to build examples --- .github/workflows/main.yml | 11 +++++++++++ Makefile | 3 +++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 776faeca..3f8c2e75 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -86,6 +86,8 @@ jobs: include: - task: make -f Makefile build dependencies: libcryptsetup-dev + - task: make -f Makefile build-examples + dependencies: libcryptsetup-dev - task: make -f Makefile docs-ci dependencies: libcryptsetup-dev - task: make -f Makefile test @@ -153,6 +155,9 @@ jobs: - task: make -f Makefile build dependencies: cryptsetup-devel container: 33 + - task: make -f Makefile build-examples + dependencies: cryptsetup-devel + container: 33 - task: make -f Makefile docs-ci dependencies: cryptsetup-devel container: 33 @@ -176,6 +181,9 @@ jobs: - task: make -f Makefile build dependencies: cryptsetup-devel container: 34 + - task: make -f Makefile build-examples + dependencies: cryptsetup-devel + container: 34 - task: make -f Makefile docs-ci dependencies: cryptsetup-devel container: 34 @@ -199,6 +207,9 @@ jobs: - task: make -f Makefile build dependencies: cryptsetup-devel container: 38 + - task: make -f Makefile build-examples + dependencies: cryptsetup-devel + container: 38 - task: make -f Makefile docs-ci dependencies: cryptsetup-devel container: 38 diff --git a/Makefile b/Makefile index 807cca37..68399a0a 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,9 @@ check-typos: build: cargo build +build-examples: + cargo build --examples + test-compare-fedora-versions: echo "Testing that COMPARE_FEDORA_VERSIONS environment variable is set to a valid path" test -e "${COMPARE_FEDORA_VERSIONS}"