From 71d596a0278207441b68cc4deea08de7c734869e Mon Sep 17 00:00:00 2001 From: Antoine Gouby Date: Sat, 9 Dec 2023 02:17:38 +0100 Subject: [PATCH] test --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ .gitignore | 3 +-- scripts/docker_registry.sh | 6 +++--- 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bb31710 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: CI Workflow + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/panduza/pzacxx-build-img:latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - if: ${{ env.ACT }} + name: Hack container for local development + run: + pacman -S --noconfirm nodejs + + - name: Cache Conan + id: cache-conan + uses: actions/cache@v3 + with: + path: ~/.conan2 + key: conan-cache + + - name: + if: steps.cache-conan.outputs.cache-hit != 'true' + run: + conan install -pr:b ./conan_profiles/linux_gcc -pr:h ./conan_profiles/linux_gcc --build=missing -s build_type=Debug -o shared=False . + + + - name: Install dependencies and build (Debug, Static) + run: | + echo "Building Debug, Static" diff --git a/.gitignore b/.gitignore index 7a1055f..a887e6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build* +build/* examples/build* examples/CMakeUserPresets.json CMakeUserPresets.json @@ -7,4 +7,3 @@ ConanPresets.json Testing conan_imports_manifest.txt *.swp -*.swo diff --git a/scripts/docker_registry.sh b/scripts/docker_registry.sh index 1836595..6f0eaf4 100755 --- a/scripts/docker_registry.sh +++ b/scripts/docker_registry.sh @@ -1,6 +1,6 @@ #!/bin/bash -IMAGE_NAME="pzacx-build-img" +IMAGE_NAME="pzacxx-build-img" PROJECT_ROOT_DIR="$(dirname "$(realpath "$0")")/.." TEMP=$(getopt -o u:p:h --long username:,password:,help -n "$0" -- "$@") @@ -54,5 +54,5 @@ fi docker login ghcr.io -u $USERNAME -p $PASSWORD || exit 1 docker build -t $IMAGE_NAME $PROJECT_ROOT_DIR/docker || exit 1 -docker tag $IMAGE_NAME:latest ghcr.io/panduza/$IMAGE_NAME:latest || exit 1 -docker push ghcr.io/panduza/$IMAGE_NAME:latest \ No newline at end of file +docker tag $IMAGE_NAME ghcr.io/panduza/$IMAGE_NAME:latest +docker push ghcr.io/panduza/$IMAGE_NAME:latest