Skip to content

Commit

Permalink
Updated GitHub jobs to use specific profiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Dec 14, 2023
1 parent 62cceca commit 377ccf8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ inputs:
build_type:
required: true
description: Is the build a debug or release version
compiler:
conan_profile:
required: true
description: Which compiler to use
description: Which conan profile to use
shell:
required: true
description: Which shell to use for the `run` command
Expand All @@ -24,7 +24,7 @@ runs:
conan profile detect --force
build_type=${{ inputs.build_type }}
lowercase_build_type=$(echo ${build_type} | tr '[:upper:]' '[:lower:]')
conan build . -pr=conan/profiles/tests-${lowercase_build_type} -s:b compiler=${{ inputs.compiler }} -b missing
conan build . -pr=conan/profiles/${{ inputs.conan_profile }} -b missing
shell: ${{ inputs.shell }}
- name: Test
working-directory: build/${{ inputs.build_type }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: ./.github/actions/cpp-tests
with:
build_type: ${{ matrix.build_type }}
compiler: ${{ matrix.compiler }}
conan_profile: tests-${{ matrix.build_type }}-${{ matrix.compiler }}-linux-x64
shell: bash

cpp-macos-x64:
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: ./.github/actions/cpp-tests
with:
build_type: ${{ matrix.build_type }}
compiler: clang
conan_profile: tests-${{ matrix.build_type }}-macos-x64
shell: bash

cpp-windows-x64:
Expand All @@ -61,7 +61,7 @@ jobs:
- uses: ./.github/actions/cpp-tests
with:
build_type: ${{ matrix.build_type }}
compiler: msvc
conan_profile: tests-${{ matrix.build_type }}-windows-x64
shell: bash

cpp-linux-arm64:
Expand Down Expand Up @@ -89,8 +89,8 @@ jobs:
apt-get install -y bison flex default-jre
- uses: ./.github/actions/cpp-tests
with:
build_type: Release
compiler: gcc
build_type: ${{ matrix.build_type }}
conan_profile: tests-${{ matrix.build_type }}-linux-arm64
shell: bash

cpp-macos-arm64:
Expand All @@ -117,8 +117,8 @@ jobs:
shell: bash
- uses: ./.github/actions/cpp-tests
with:
build_type: Release
compiler: clang
build_type: ${{ matrix.build_type }}
conan_profile: tests-${{ matrix.build_type }}-macos-arm64
shell: bash

python-linux-x64:
Expand Down
3 changes: 0 additions & 3 deletions conan/profiles/release
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ libqasm/*:build_type=Release
libqasm/*:asan_enabled=False
libqasm/*:build_tests=False
libqasm/*:compat=False

[conf]
tools.build:cxxflags=["-Wno-error=maybe-uninitialized"]
3 changes: 0 additions & 3 deletions conan/profiles/tests-release
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ libqasm/*:build_type=Release
libqasm/*:asan_enabled=True
libqasm/*:build_tests=True
libqasm/*:compat=False

[conf]
tools.build:cxxflags=["-Wno-error=maybe-uninitialized"]

0 comments on commit 377ccf8

Please sign in to comment.