From 3e33ad5f9a391723f604091323a9d1514c1fc17b Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 18 Oct 2023 04:44:10 -0700 Subject: [PATCH] CircleCI work and support Raspbian. --- .circleci/config.yml | 6 +++--- scripts/install-depdendencies.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 477c14f..9fb2f6e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,14 +9,14 @@ jobs: # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. # See: https://circleci.com/docs/configuration-reference/#executor-job docker: - - image: kisom/sc-dev:latest + - image: kisom/sc-dev:1.0.0 # Add steps to the job # See: https://circleci.com/docs/configuration-reference/#steps steps: - checkout - run: - name: "Setup cmake build" - command: "./scripts/setup-cmake.sh" + name: Setup cmake build + command: ./scripts/setup-cmake.sh - # Orchestrate jobs using workflows diff --git a/scripts/install-depdendencies.sh b/scripts/install-depdendencies.sh index 0eb69ba..e8e62f6 100755 --- a/scripts/install-depdendencies.sh +++ b/scripts/install-depdendencies.sh @@ -55,8 +55,10 @@ install_macos () { install_linux () { + DISTRIB_ID="${DISTRIB_ID:-}" echo "[+] host system is Linux" [[ -f "/etc/lsb-release" ]] && source /etc/lsb-release + [[ -f "/etc/rpi-issue" ]] && DISTRIB_ID=apt-based if [ -z "${DISTRIB_ID}" ] then if [ -d /etc/apt ]