Skip to content

Commit 38ccd13

Browse files
committed
Equalize to rust example
1 parent fb29257 commit 38ccd13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/examples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cd examples/cpp/lib
2727
cmake -Bbuild
2828
cmake --build build/ --target ocipkg
29-
ocipkg push build/ocipkg_example_cpp_lib.tar
29+
ocipkg push build/ocipkg_static_cpp.tar
3030
3131
rust-lib:
3232
runs-on: ubuntu-22.04

examples/cpp/lib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.16) # default of ubuntu:20.04
2-
project(ocipkg_example_cpp_lib)
2+
project(ocipkg_static_cpp)
33

44
# Build C++ source as a static library
55
add_library(ocipkg_static_cpp STATIC lib.cpp)

examples/cpp/lib/lib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22

33
extern "C" {
4-
void hello_from_cpp() {
4+
void ocipkg_hello_world() {
55
std::cout << "Hello from C++!" << std::endl;
66
}
77
}

0 commit comments

Comments
 (0)