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 471f848
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ 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, win]
compiler: [gcc, clang, mingw]
build_type: [debug, release]
lib_type: [shared, static]
exclude:
- os: linux
compiler: mingw
Expand All @@ -33,20 +32,23 @@ jobs:
uses: actions/cache@v2
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 }}
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 }}
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 471f848

Please sign in to comment.