Skip to content

Commit

Permalink
Merge pull request #13543 from ajayk/cmake-3.28
Browse files Browse the repository at this point in the history
cmake: 3.29 and add tests
rawlingsj authored Mar 24, 2024
2 parents 3988fc0 + 64ebe4a commit 6c6db1e
Showing 3 changed files with 35 additions and 3 deletions.
28 changes: 25 additions & 3 deletions cmake.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: cmake
version: 3.27.9
version: 3.29.0
epoch: 0
description: "CMake is an open-source, cross-platform family of tools designed to build, test and package software"
copyright:
@@ -28,8 +28,8 @@ environment:
pipeline:
- uses: fetch
with:
uri: https://www.cmake.org/files/v3.27/cmake-${{package.version}}.tar.gz
expected-sha256: 609a9b98572a6a5ea477f912cffb973109ed4d0a6a6b3f9e2353d2cdc048708e
uri: https://www.cmake.org/files/v3.29/cmake-${{package.version}}.tar.gz
expected-sha256: a0669630aae7baa4a8228048bf30b622f9e9fd8ee8cedb941754e9e38686c778

# Depending on system cppdap, jsoncpp, and curl would create a circular
# dependency; thus, we use bundled ones.
@@ -59,3 +59,25 @@ update:
manual: true # be careful upgrading cmake as it is a core package
release-monitor:
identifier: 306

test:
environment:
contents:
packages:
- wolfi-base
- make
- gcc
- autoconf
- automake
- build-base
pipeline:
- working-directory: wolfi-tests
runs: |
cmake --version
- working-directory: wolfi-tests
runs: |
mkdir -p build
cd build
cmake ..
make
./hello_wolfi
4 changes: 4 additions & 0 deletions cmake/wolfi-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
project(HelloWorld)
cmake_minimum_required(VERSION 3.0)

add_executable(hello_wolfi main.cpp)
6 changes: 6 additions & 0 deletions cmake/wolfi-tests/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <iostream>

int main(int argc, char** argv){
std::cout << "Hello Wolfi" << std::endl;
return 0;
}

0 comments on commit 6c6db1e

Please sign in to comment.