Skip to content

Commit

Permalink
efe
Browse files Browse the repository at this point in the history
  • Loading branch information
wardru committed Dec 10, 2023
1 parent e4c055d commit d0a1196
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 24 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/panduza/pzacxx-build-img:latest
options: --user 1001
strategy:
matrix:
os: [linux]
compiler: [gcc]
build_type: [Debug]
shared: ["True", "False"]
os: [linux, windows]
compiler: [gcc, clang]
build_type: [debug, release]
lib_type: [shared, static]
exclude:
- os: linux
compiler: mingw
- os: win
compiler: gcc
- os: win
- os: windows
compiler: clang
steps:
- name: Checkout
Expand All @@ -30,23 +25,27 @@ jobs:
run: pacman -S --noconfirm nodejs

- name: "cache"
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.conan2/p
key: conan-cache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ matrix.shared }}
key: conan-cache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ matrix.lib_type }}

- name: "Install"
run:
conan install -pr:b ./conan_profiles/linux_gcc -pr:h ./conan_profiles/${{ matrix.os }}_${{ matrix.compiler }} --build=missing -s build_type=${{ matrix.build_type }} -o shared=${{ matrix.shared }} .
- id: build_type
uses: ASzc/change-string-case-action@v6
with:
string: ${{ matrix.build_type }}

- name: "Build"
- name: "Install"
run: |
if [ "${{ matrix.shared }}" = "True" ]; then
lib_type="shared"
if [ "${{ matrix.lib_type }}" = "static" ]; then
shared="False"
else
lib_type="static"
shared="True"
fi
ls -l build
echo "build folder: ./build/${{ matrix.os }}-${{ matrix.compiler }}-$lib_type"
cmake --preset ${{ matrix.os }}-${{ matrix.compiler }}-$lib_type
cmake --build ./build/${{ matrix.os }}-${{ matrix.compiler }}-$lib_type --config ${{ matrix.build_type }}
echo "LOL : ${{ matrix.os }}_${{ matrix.compiler }}"
conan install -pr:b ./conan_profiles/linux_gcc -pr:h ./conan_profiles/${{ matrix.os }}_${{ matrix.compiler }} --build=missing -s build_type=${{ steps.build_type.outputs.capitalized }} -o shared=$shared .
- name: "Build"
run: |
cmake --preset ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.lib_type }}
cmake --build --preset ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.lib_type }}-${{ matrix.build_type }}
90 changes: 90 additions & 0 deletions 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[CI Workflow/build-1 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
[CI Workflow/build-4 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
[CI Workflow/build-2 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
[CI Workflow/build-3 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:51+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-1 ] 🐳 docker pull image=ghcr.io/panduza/pzacxx-build-img:latest platform= username= forcePull=true
time="2023-12-10T03:58:51+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-3 ] 🐳 docker pull image=ghcr.io/panduza/pzacxx-build-img:latest platform= username= forcePull=true
time="2023-12-10T03:58:51+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-2 ] 🐳 docker pull image=ghcr.io/panduza/pzacxx-build-img:latest platform= username= forcePull=true
time="2023-12-10T03:58:51+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-4 ] 🐳 docker pull image=ghcr.io/panduza/pzacxx-build-img:latest platform= username= forcePull=true
[CI Workflow/build-1 ] using DockerAuthConfig authentication for docker pull
time="2023-12-10T03:58:52+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-1 ] 🐳 docker create image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-1 ] 🐳 docker run image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-1 ] ☁ git clone 'https://github.com/actions/cache' # ref=v3
[CI Workflow/build-3 ] using DockerAuthConfig authentication for docker pull
[CI Workflow/build-4 ] using DockerAuthConfig authentication for docker pull
[CI Workflow/build-2 ] using DockerAuthConfig authentication for docker pull
[CI Workflow/build-1 ] ☁ git clone 'https://github.com/ASzc/change-string-case-action' # ref=v6
time="2023-12-10T03:58:53+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-3 ] 🐳 docker create image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
time="2023-12-10T03:58:53+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-2 ] 🐳 docker create image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
time="2023-12-10T03:58:53+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-4 ] 🐳 docker create image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-3 ] 🐳 docker run image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-2 ] 🐳 docker run image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-4 ] 🐳 docker run image=ghcr.io/panduza/pzacxx-build-img:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI Workflow/build-1 ] 🧪 Matrix: map[build_type:debug compiler:gcc lib_type:shared os:linux]
[CI Workflow/build-1 ] ⭐ Run Main Checkout
[CI Workflow/build-1 ] 🐳 docker cp src=/home/agouby/panduza/panduza-cxx/. dst=/home/agouby/panduza/panduza-cxx
[CI Workflow/build-2 ] ☁ git clone 'https://github.com/actions/cache' # ref=v3
[CI Workflow/build-3 ] ☁ git clone 'https://github.com/actions/cache' # ref=v3
[CI Workflow/build-4 ] ☁ git clone 'https://github.com/actions/cache' # ref=v3
[CI Workflow/build-1 ] ✅ Success - Main Checkout
[CI Workflow/build-1 ] ⭐ Run Main Hack container for local development
[CI Workflow/build-1 ] 🐳 docker exec cmd=[sh -e /var/run/act/workflow/1.sh] user= workdir=
[CI Workflow/build-1 ] | resolving dependencies...
[CI Workflow/build-1 ] | looking for conflicting packages...
[CI Workflow/build-1 ] |
[CI Workflow/build-1 ] | Package (2) New Version Net Change Download Size
[CI Workflow/build-1 ] |
[CI Workflow/build-1 ] | extra/c-ares 1.23.0-1 0.59 MiB 0.25 MiB
[CI Workflow/build-1 ] | extra/nodejs 21.4.0-1 65.04 MiB 15.22 MiB
[CI Workflow/build-1 ] |
[CI Workflow/build-1 ] | Total Download Size: 15.47 MiB
[CI Workflow/build-1 ] | Total Installed Size: 65.63 MiB
[CI Workflow/build-1 ] |
[CI Workflow/build-1 ] | :: Proceed with installation? [Y/n]
[CI Workflow/build-1 ] | :: Retrieving packages...
[CI Workflow/build-2 ] ☁ git clone 'https://github.com/ASzc/change-string-case-action' # ref=v6
[CI Workflow/build-3 ] ☁ git clone 'https://github.com/ASzc/change-string-case-action' # ref=v6
[CI Workflow/build-4 ] ☁ git clone 'https://github.com/ASzc/change-string-case-action' # ref=v6
[CI Workflow/build-2 ] 🧪 Matrix: map[build_type:release compiler:gcc lib_type:shared os:linux]
[CI Workflow/build-2 ] ⭐ Run Main Checkout
[CI Workflow/build-2 ] 🐳 docker cp src=/home/agouby/panduza/panduza-cxx/. dst=/home/agouby/panduza/panduza-cxx
[CI Workflow/build-2 ] ✅ Success - Main Checkout
[CI Workflow/build-2 ] ⭐ Run Main Hack container for local development
[CI Workflow/build-2 ] 🐳 docker exec cmd=[sh -e /var/run/act/workflow/1.sh] user= workdir=
[CI Workflow/build-2 ] ❌ Failure - Main Hack container for local development
[CI Workflow/build-1 ] ❌ Failure - Main Hack container for local development
[CI Workflow/build-2 ] Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.43/containers/7624bdbe04fe4d6eb788e80926ed061963ccd0087d826c70e0373cd59d672755/archive?path=%2Fvar%2Frun%2Fact%2Fworkflow%2Fpathcmd.txt": context canceled
[CI Workflow/build-1 ] Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.43/containers/9c484b4ceb60b415794d64f617851538cd002e27e2aea3cb48e3b2b9535d4c04/archive?path=%2Fvar%2Frun%2Fact%2Fworkflow%2Fpathcmd.txt": context canceled
[CI Workflow/build-2 ] Cleaning up container for job build
[CI Workflow/build-1 ] Cleaning up container for job build
[CI Workflow/build-3 ] Cleaning up container for job build
[CI Workflow/build-1 ] 🏁 Job succeeded
[CI Workflow/build-5 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-6 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-7 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-8 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-9 ] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-10] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-11] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-12] 🚀 Start image=ghcr.io/panduza/pzacxx-build-img:latest
time="2023-12-10T03:58:55+01:00" level=info msg="Parallel tasks (0) below minimum, setting to 1"
[CI Workflow/build-2 ] 🏁 Job succeeded
[CI Workflow/build-3 ] 🏁 Job succeeded
[CI Workflow/build-4 ] Cleaning up container for job build
[CI Workflow/build-4 ] 🏁 Job succeeded
Error: context canceled
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ USER root
RUN ln -s /usr/x86_64-w64-mingw32/lib/librpcrt4.a /usr/x86_64-w64-mingw32/lib/libRpcRT4.a
RUN userdel -r mingw

RUN git config --global --add safe.directory '*'
RUN git config --system --add safe.directory '*'
Empty file added toto
Empty file.

0 comments on commit d0a1196

Please sign in to comment.