Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wardru committed Dec 9, 2023
1 parent b41dcd2 commit 71d596a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build*
build/*
examples/build*
examples/CMakeUserPresets.json
CMakeUserPresets.json
Expand All @@ -7,4 +7,3 @@ ConanPresets.json
Testing
conan_imports_manifest.txt
*.swp
*.swo
6 changes: 3 additions & 3 deletions scripts/docker_registry.sh
Original file line number Diff line number Diff line change
@@ -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" -- "$@")
Expand Down Expand Up @@ -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
docker tag $IMAGE_NAME ghcr.io/panduza/$IMAGE_NAME:latest
docker push ghcr.io/panduza/$IMAGE_NAME:latest

0 comments on commit 71d596a

Please sign in to comment.