mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
fix github actions to obtain libssh version dynamically
This commit is contained in:
6
.github/workflows/build-freebsd.yml
vendored
6
.github/workflows/build-freebsd.yml
vendored
@@ -15,13 +15,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: apply the patch to libssh
|
||||||
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
- name: Build in FreeBSD
|
- name: Build in FreeBSD
|
||||||
uses: vmactions/freebsd-vm@v1
|
uses: vmactions/freebsd-vm@v1
|
||||||
with:
|
with:
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y git cmake
|
pkg install -y git cmake
|
||||||
run: |
|
run: |
|
||||||
patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=Release
|
cmake -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build build
|
cmake --build build
|
||||||
build/mscp -h
|
build/mscp -h
|
||||||
|
|||||||
8
.github/workflows/build-macos.yml
vendored
8
.github/workflows/build-macos.yml
vendored
@@ -22,6 +22,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: apply the patch to libssh
|
||||||
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
- name: install build dependency
|
- name: install build dependency
|
||||||
run: ./scripts/install-build-deps.sh
|
run: ./scripts/install-build-deps.sh
|
||||||
|
|
||||||
@@ -29,9 +34,6 @@ jobs:
|
|||||||
id: brew-prefix
|
id: brew-prefix
|
||||||
run: echo "HOMEBREW_PREFIX=$(brew --prefix)" >> $GITHUB_OUTPUT
|
run: echo "HOMEBREW_PREFIX=$(brew --prefix)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: patch to libssh
|
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
|
|||||||
8
.github/workflows/build-ubuntu.yml
vendored
8
.github/workflows/build-ubuntu.yml
vendored
@@ -22,14 +22,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: apply the patch to libssh
|
||||||
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
- name: install build dependency
|
- name: install build dependency
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo ./scripts/install-build-deps.sh
|
sudo ./scripts/install-build-deps.sh
|
||||||
|
|
||||||
- name: patch to libssh
|
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
|
|||||||
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
@@ -42,14 +42,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: apply the patch to libssh
|
||||||
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
- name: install build dependency
|
- name: install build dependency
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo ./scripts/install-build-deps.sh
|
sudo ./scripts/install-build-deps.sh
|
||||||
|
|
||||||
- name: patch to libssh
|
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v3
|
||||||
|
|||||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -17,8 +17,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: patch to libssh
|
- name: apply the patch to libssh
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
# TODO: just building docker does not require packages. fix CMakeLists
|
# TODO: just building docker does not require packages. fix CMakeLists
|
||||||
- name: install build dependency
|
- name: install build dependency
|
||||||
@@ -43,8 +45,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: patch to libssh
|
- name: apply the patch to libssh
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -29,8 +29,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: patch to libssh
|
- name: apply the patch to libssh
|
||||||
run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
|
run: |
|
||||||
|
git -C libssh fetch --all --tags --prune
|
||||||
|
patch -d libssh -p1 < patch/$(git -C libssh describe).patch
|
||||||
|
|
||||||
# TODO: just building docker images does not require libssh. fix CMakeLists
|
# TODO: just building docker images does not require libssh. fix CMakeLists
|
||||||
- name: install build dependency
|
- name: install build dependency
|
||||||
|
|||||||
Reference in New Issue
Block a user