From f25d69f61d6b080105ab0ac4d8c9ef906f8e7fd0 Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:48:01 +0100 Subject: [PATCH 1/2] ci: Refine structure of C sshnpd source tarball --- .github/workflows/c_release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c_release.yml b/.github/workflows/c_release.yml index 4220e5fb0..ea6800e59 100644 --- a/.github/workflows/c_release.yml +++ b/.github/workflows/c_release.yml @@ -108,8 +108,9 @@ jobs: - name: Create tarball run: | mkdir tarball - cd ./packages/c - tar -cvzf ../../tarball/csshnpd-${{ github.ref_name }}.tar.gz . + cd ./packages + mv c csshnpd-${{ github.ref_name }} + tar -cvzf ../tarball/csshnpd-${{ github.ref_name }}.tar.gz csshnpd-${{ github.ref_name }} - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: csshnpd-src-${{github.ref_name}}-${{github.run_number}}-${{github.run_attempt}} From 655fbc178b78805c3c4a19534bac8d847ad80cb6 Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:50:59 +0100 Subject: [PATCH 2/2] build: CMakeLists.txt to facilitate build of shhnpd from C package root --- packages/c/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/c/CMakeLists.txt diff --git a/packages/c/CMakeLists.txt b/packages/c/CMakeLists.txt new file mode 100644 index 000000000..52160c74d --- /dev/null +++ b/packages/c/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.19) +set(CMAKE_C_STANDARD 99) +cmake_policy(SET CMP0135 NEW) +project(csshnpd VERSION 0.0.1 LANGUAGES C) +add_subdirectory(sshnpd)