mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
removed sdbus-cpp installation/build/cache steps from github workflows
This commit is contained in:
@@ -60,41 +60,6 @@ jobs:
|
||||
qt6-tools-dev-tools \
|
||||
libqrencode-dev
|
||||
|
||||
- name: Restore sdbus-c++ cache
|
||||
id: sdbus-cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-install
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-build
|
||||
key: ${{ runner.os }}-sdbus-cpp-debug-usr-v1
|
||||
|
||||
- name: Build sdbus-c++ if cache missed
|
||||
if: steps.sdbus-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/Kistler-Group/sdbus-cpp.git
|
||||
cmake -S sdbus-cpp -B "${{ github.workspace }}/.cache/sdbus-cpp-build" \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
cmake --build "${{ github.workspace }}/.cache/sdbus-cpp-build"
|
||||
rm -rf "${{ github.workspace }}/.cache/sdbus-cpp-install"
|
||||
mkdir -p "${{ github.workspace }}/.cache/sdbus-cpp-install"
|
||||
DESTDIR="${{ github.workspace }}/.cache/sdbus-cpp-install" \
|
||||
cmake --install "${{ github.workspace }}/.cache/sdbus-cpp-build"
|
||||
|
||||
- name: Install cached/built sdbus-c++ into /usr
|
||||
run: |
|
||||
sudo cp -a "${{ github.workspace }}/.cache/sdbus-cpp-install/usr/." /usr/
|
||||
|
||||
- name: Save sdbus-c++ cache
|
||||
if: always() && steps.sdbus-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v5
|
||||
with:
|
||||
key: ${{ steps.sdbus-cache.outputs.cache-primary-key }}
|
||||
path: |
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-install
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-build
|
||||
|
||||
- name: Build and install Nearby Sharing API shared library
|
||||
id: nearby
|
||||
run: |
|
||||
|
||||
@@ -66,41 +66,6 @@ jobs:
|
||||
qt6-tools-dev-tools \
|
||||
libqrencode-dev
|
||||
|
||||
- name: Restore sdbus-c++ cache
|
||||
id: sdbus-cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-install
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-build
|
||||
key: ${{ runner.os }}-sdbus-cpp-debug-usr-v1
|
||||
|
||||
- name: Build sdbus-c++ if cache missed
|
||||
if: steps.sdbus-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/Kistler-Group/sdbus-cpp.git
|
||||
cmake -S sdbus-cpp -B "${{ github.workspace }}/.cache/sdbus-cpp-build" \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
cmake --build "${{ github.workspace }}/.cache/sdbus-cpp-build"
|
||||
rm -rf "${{ github.workspace }}/.cache/sdbus-cpp-install"
|
||||
mkdir -p "${{ github.workspace }}/.cache/sdbus-cpp-install"
|
||||
DESTDIR="${{ github.workspace }}/.cache/sdbus-cpp-install" \
|
||||
cmake --install "${{ github.workspace }}/.cache/sdbus-cpp-build"
|
||||
|
||||
- name: Install cached/built sdbus-c++ into /usr
|
||||
run: |
|
||||
sudo cp -a "${{ github.workspace }}/.cache/sdbus-cpp-install/usr/." /usr/
|
||||
|
||||
- name: Save sdbus-c++ cache
|
||||
if: always() && steps.sdbus-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v5
|
||||
with:
|
||||
key: ${{ steps.sdbus-cache.outputs.cache-primary-key }}
|
||||
path: |
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-install
|
||||
${{ github.workspace }}/.cache/sdbus-cpp-build
|
||||
|
||||
- name: Build Connections
|
||||
run: |
|
||||
bazel build \
|
||||
|
||||
Reference in New Issue
Block a user