Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub pipeline to look like QX's one. #181

Merged
merged 33 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1d0522f
Update GitHub pipeline to look like QX's one.
rturrado Dec 13, 2023
feced59
Testing new pipeline.
rturrado Dec 13, 2023
5d1faf6
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
03dbe86
Trying to fix python jobs.
rturrado Dec 13, 2023
f83a698
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
b1b6a62
Trying to fix python jobs.
rturrado Dec 13, 2023
dfc87a5
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
c65344f
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
2242431
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
f32d513
Update tree-gen to latest commit of tree-gen/olafs_git_hub_pipeline.
rturrado Dec 13, 2023
08be15e
Update to use the latest commit ID for tree-gen/olafs_git_hub_pipeline.
rturrado Dec 13, 2023
f1079a1
clang++ compiler is never used.
rturrado Dec 13, 2023
17e4f19
Fix conan line in action.yaml.
rturrado Dec 13, 2023
30b79cf
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
0d9a70e
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
6eb2522
Trying to fix cpp-linux-arm64 job.
rturrado Dec 13, 2023
79470ce
Trying to fix cpp-linux-arm64 job.
rturrado Dec 14, 2023
7535fea
Enabled all jobs in test.yml.
rturrado Dec 14, 2023
9ecea4c
Passing compiler to .github/actions/cpp-tests for all cpp jobs.
rturrado Dec 14, 2023
a2de93a
Fixing compiler name for cpp-linux-x64 job.
rturrado Dec 14, 2023
62cceca
Added new conan profiles.
rturrado Dec 14, 2023
377ccf8
Updated GitHub jobs to use specific profiles.
rturrado Dec 14, 2023
c77cda3
Fix conan profile name.
rturrado Dec 14, 2023
a83a096
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
6e07ef5
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
8bee1cb
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
97d8c76
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
92b6e27
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
9844104
Trying to fix clang-linux-x64 jobs.
rturrado Dec 14, 2023
fe7cff1
Enabled all GitHub jobs.
rturrado Dec 14, 2023
3502d99
Enabled all GitHub cpp-linux-x64 jobs.
rturrado Dec 14, 2023
6758233
Changed on/push/branches back to develop.
rturrado Dec 14, 2023
b3dc910
Update to use the latest commit ID from tree-gen/master.
rturrado Dec 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Compile libqasm
description: Install tools and compile libqasm
inputs:
build_type:
required: true
description: Is the build a debug or release version
conan_profile:
required: true
description: Which conan profile to use
shell:
required: true
description: Which shell to use for the `run` command

runs:
using: composite
steps:
- name: Install conan
run: python3 -m pip install --upgrade pip conan
shell: ${{ inputs.shell }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Configure and build
run: |
conan profile detect --force
conan_profile=${{ inputs.conan_profile }}
lowercase_conan_profile=$(echo ${conan_profile} | tr '[:upper:]' '[:lower:]')
conan build . -pr=conan/profiles/${lowercase_conan_profile} -b missing
shell: ${{ inputs.shell }}
- name: Test
working-directory: build/${{ inputs.build_type }}
run: ctest -C ${{ inputs.build_type }} --output-on-failure
shell: ${{ inputs.shell }}
24 changes: 24 additions & 0 deletions .github/actions/python-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python tests
description: Install and run tests in Python
inputs:
shell:
required: true
description: Which shell to use for the `run` command

runs:
using: composite
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install Python dependencies
run: python -m pip install --upgrade pip conan pytest setuptools wheel
shell: ${{ inputs.shell }}
- name: Build
run: python -m pip install --verbose .
shell: ${{ inputs.shell }}
- name: Test
run: python -m pytest
shell: ${{ inputs.shell }}
Loading