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

Explore using Github Actions for CI #17028

Closed
wants to merge 140 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
41ad99a
Squashed commit of the following:
czoido Sep 12, 2024
3a39b68
wip
czoido Sep 12, 2024
212901d
wip
czoido Sep 12, 2024
fa04da7
wip
czoido Sep 13, 2024
1d79460
wip
czoido Sep 13, 2024
6a34241
wip
czoido Sep 13, 2024
cf9633e
wip
czoido Sep 13, 2024
f36c22f
wip
czoido Sep 13, 2024
b9d119f
wip
czoido Sep 13, 2024
58e9aa5
wip
czoido Sep 13, 2024
d202c8a
wip
czoido Sep 20, 2024
1ddd0fc
remove comments
czoido Sep 20, 2024
007d6f4
add noninteractive
czoido Sep 20, 2024
859d0cd
wip
czoido Sep 20, 2024
855f6b7
use 24.04
czoido Sep 20, 2024
da38fdd
minor changes
czoido Sep 20, 2024
469778b
use login-action
czoido Sep 20, 2024
4d75f86
use 4
czoido Sep 20, 2024
48cddf9
Merge branch 'develop2' into ci-gh-actions
czoido Sep 20, 2024
ac8db86
Add Clang 19 support (#17010)
AbrilRBS Sep 20, 2024
2c694ac
redirect PkgConfig stderr (#17020)
memsharded Sep 20, 2024
7804258
Test for universal binaries macOS using Ninja (#17024)
czoido Sep 22, 2024
95fa028
refactor, avoid getting same core config for every package (#16962)
memsharded Sep 22, 2024
b10a5f6
fix skip binaries (#17033)
memsharded Sep 23, 2024
d0eb5f2
Add `auth_plugin` with tests (#16942)
ErniGH Sep 23, 2024
141cd0e
minor improvements to auth plugins
memsharded Sep 23, 2024
28739c7
minor improvements to auth plugins (#17041)
ErniGH Sep 23, 2024
745914e
wip
czoido Sep 23, 2024
45e88c5
change image name, just use 1 image for all tests
czoido Sep 23, 2024
7e23746
wip
czoido Sep 23, 2024
4739a4c
Merge branch 'ci-gh-actions' of github.com:conan-io/conan into ci-gh-…
czoido Sep 23, 2024
8dd1c1a
fix folder name
czoido Sep 23, 2024
179c915
update versions
czoido Sep 23, 2024
e2f2b9a
wip
czoido Sep 23, 2024
52658a0
wip
czoido Sep 23, 2024
90880a4
minor changes
czoido Sep 24, 2024
219b7a2
fix
czoido Sep 24, 2024
9690c30
fix
czoido Sep 24, 2024
90c7750
wip
czoido Sep 24, 2024
2e8b84a
install autoconf and pkg-config
czoido Sep 24, 2024
c997656
wip
czoido Sep 24, 2024
0c947aa
optimize
czoido Sep 24, 2024
724e277
add scons
czoido Sep 24, 2024
3e6e28b
wip
czoido Sep 24, 2024
634be01
wip
czoido Sep 24, 2024
0e08325
fix asm err
czoido Sep 24, 2024
ee53811
wip
czoido Sep 24, 2024
9af8d0c
wip
czoido Sep 24, 2024
0fc2c3e
update name
czoido Sep 24, 2024
e0f2d33
wip
czoido Sep 24, 2024
216d3ac
defining CMAKE_SYSTEM_XXX even if toolchain is defined, but protected…
memsharded Sep 24, 2024
218b9b2
Fix propagation of include_prerelease when calculating VersionRange i…
lordjaxom Sep 24, 2024
a9062ec
Add CLI arg to make virtualenvs not autogenerate if needed (#16935)
AbrilRBS Sep 24, 2024
c8eabfd
[PkgConfigDeps][bugfix] `set_property` (#17051)
franramirez688 Sep 24, 2024
eaf7696
Feature/build compatibles (#16871)
memsharded Sep 24, 2024
2794417
fix requires(..., package_id_mode=) with diamonds (#16987)
memsharded Sep 24, 2024
e492362
check if docker tests run by any chance
czoido Sep 24, 2024
6bdd032
revert change
czoido Sep 24, 2024
3c56a3d
show skip
czoido Sep 24, 2024
7775697
Honour `check_type` parameter to from CMakeDeps & PkgConfigDeps get_p…
AbrilRBS Sep 24, 2024
136561b
Add test to show that changing option values in config_options is a n…
AbrilRBS Sep 24, 2024
a732ee6
add message to included user_toolchain in CMakeToolchain (#17053)
memsharded Sep 24, 2024
c89528e
refactor Rest layer (#17063)
memsharded Sep 25, 2024
f5d6598
Fix/deprecation extractall (#16918)
memsharded Sep 26, 2024
4a71454
check if we can run docker tests
czoido Sep 26, 2024
5dbd8b9
try to run docker tests
czoido Sep 26, 2024
8bb566f
WIP
czoido Sep 26, 2024
a0398e4
wip
czoido Sep 26, 2024
abc865e
test
czoido Sep 26, 2024
c7e68b4
wip
czoido Sep 27, 2024
ffb7063
wip
czoido Sep 27, 2024
b6e46d8
wip
czoido Sep 27, 2024
00cfa05
wip
czoido Sep 27, 2024
5e41ae1
wip
czoido Sep 27, 2024
37251c3
test for test_package consumer conf (#16639)
memsharded Sep 27, 2024
02b0ea1
allow depending on self for bootstrap (#16870)
memsharded Sep 27, 2024
97ab818
[BazelDeps][bugfix] Windows and shared libraries (#17045)
franramirez688 Sep 27, 2024
f33e5c0
explore replace_requires references adjustements (#16443)
memsharded Sep 30, 2024
2fda45c
Fix example usage for scoped options help string (#17084)
AbrilRBS Sep 30, 2024
5441690
fix --build=compatible for graph build-order (#17068)
memsharded Sep 30, 2024
f31647f
Conan 2.9.0-dev
czoido Sep 30, 2024
31c7f45
wip
czoido Oct 1, 2024
223ac20
Squashed commit of the following:
czoido Sep 12, 2024
2fa370b
wip
czoido Sep 12, 2024
eb98e19
wip
czoido Sep 12, 2024
396cc9a
wip
czoido Sep 13, 2024
e135496
wip
czoido Sep 13, 2024
7a36959
wip
czoido Sep 13, 2024
59536ec
wip
czoido Sep 13, 2024
759578e
wip
czoido Sep 13, 2024
879026a
wip
czoido Sep 13, 2024
daee70e
wip
czoido Sep 13, 2024
072315a
wip
czoido Sep 20, 2024
b23ffe3
remove comments
czoido Sep 20, 2024
a07cc50
add noninteractive
czoido Sep 20, 2024
8d57745
wip
czoido Sep 20, 2024
b537269
use 24.04
czoido Sep 20, 2024
e8bcabb
minor changes
czoido Sep 20, 2024
8d723ce
use login-action
czoido Sep 20, 2024
9ba5817
use 4
czoido Sep 20, 2024
652612c
wip
czoido Sep 23, 2024
f71b807
change image name, just use 1 image for all tests
czoido Sep 23, 2024
3933882
wip
czoido Sep 23, 2024
c74d8f9
fix folder name
czoido Sep 23, 2024
97923c0
update versions
czoido Sep 23, 2024
fb22b6c
wip
czoido Sep 23, 2024
ec67cdc
wip
czoido Sep 23, 2024
cf5f5fa
minor changes
czoido Sep 24, 2024
6340179
fix
czoido Sep 24, 2024
4eb6ea2
fix
czoido Sep 24, 2024
0c1e472
wip
czoido Sep 24, 2024
62fdee8
install autoconf and pkg-config
czoido Sep 24, 2024
e629132
wip
czoido Sep 24, 2024
decf887
optimize
czoido Sep 24, 2024
44baa52
add scons
czoido Sep 24, 2024
9cb8bec
wip
czoido Sep 24, 2024
4766f39
wip
czoido Sep 24, 2024
93c9a1f
fix asm err
czoido Sep 24, 2024
bc7cde2
wip
czoido Sep 24, 2024
ce01daf
wip
czoido Sep 24, 2024
9b3f7db
update name
czoido Sep 24, 2024
8ced42c
wip
czoido Sep 24, 2024
0aed8a6
check if docker tests run by any chance
czoido Sep 24, 2024
3600565
revert change
czoido Sep 24, 2024
a9e5533
show skip
czoido Sep 24, 2024
215ce61
check if we can run docker tests
czoido Sep 26, 2024
1af6002
try to run docker tests
czoido Sep 26, 2024
168731c
WIP
czoido Sep 26, 2024
1c80efe
wip
czoido Sep 26, 2024
2ce0ca7
test
czoido Sep 26, 2024
ded7470
wip
czoido Sep 27, 2024
686d45a
wip
czoido Sep 27, 2024
acb9612
wip
czoido Sep 27, 2024
c071222
wip
czoido Sep 27, 2024
ee1704b
wip
czoido Sep 27, 2024
b3ef628
wip
czoido Oct 1, 2024
13d080f
restore
czoido Oct 1, 2024
6b102fc
Merge branch 'ci-gh-actions' of github.com:conan-io/conan into ci-gh-…
czoido Oct 1, 2024
bdab029
add concurrency to build
czoido Oct 1, 2024
4f7d1f6
wip
czoido Oct 1, 2024
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
Empty file removed .ci/__init__.py
Empty file.
22 changes: 0 additions & 22 deletions .ci/bump_dev_version.py

This file was deleted.

184 changes: 0 additions & 184 deletions .ci/jenkins/testsv2.jenkins

This file was deleted.

148 changes: 148 additions & 0 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: Linux tests

on:
push:
branches:
- develop2
- release/*
pull_request:
branches:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_container:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Calculate Dockerfile checksum
id: dockerfile_hash
run: |
DOCKERFILE_HASH=$(find ./ci/conan-tests -type f -exec sha256sum {} \; | sha256sum | cut -d' ' -f1)
echo "hash=$DOCKERFILE_HASH" >> $GITHUB_OUTPUT

- name: Cache Docker image
id: cache_docker_image
uses: actions/cache@v3
with:
path: docker_image_cache
key: ${{ runner.os }}-docker-${{ steps.dockerfile_hash.outputs.hash }}

- name: Load Docker image from cache
if: steps.cache_docker_image.outputs.cache-hit == 'true'
run: docker load -i docker_image_cache/conan-tests.tar

- name: Get Docker group GID
if: steps.cache_docker_image.outputs.cache-hit != 'true'
id: docker_gid
run: |
DOCKER_GID=$(getent group docker | cut -d: -f3)
echo "docker_gid=$DOCKER_GID" >> $GITHUB_OUTPUT

- name: Build Docker image (if not cached)
if: steps.cache_docker_image.outputs.cache-hit != 'true'
run: |
docker build \
--build-arg DOCKER_GID=${{ steps.docker_gid.outputs.docker_gid }} \
-t ghcr.io/${{ github.repository_owner }}/conan-tests:latest \
-f ./ci/conan-tests .
mkdir -p docker_image_cache
docker save ghcr.io/${{ github.repository_owner }}/conan-tests:latest -o docker_image_cache/conan-tests.tar

- name: Push Docker image to GHCR
if: steps.cache_docker_image.outputs.cache-hit != 'true'
run: docker push ghcr.io/${{ github.repository_owner }}/conan-tests:latest

# linux:
# needs: build_container
# runs-on: ubuntu-latest
# container:
# image: ghcr.io/${{ github.repository_owner }}/conan-tests:latest
# options: --user conan
# strategy:
# matrix:
# python-version: ['3.12.3', '3.9.2', '3.8.6', '3.6.15']
# test-type: ['unittests', 'integration', 'functional']
# name: Python ${{ matrix.python-version }} - ${{ matrix.test-type }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3

# - name: Set up Python ${{ matrix.python-version }}
# run: |
# pyenv global ${{ matrix.python-version }}
# python --version

# - name: Cache pip
# uses: actions/cache@v3
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements*.txt') }}

# - name: Install dependencies
# run: |
# pip install --upgrade pip
# pip install -r conans/requirements.txt
# pip install -r conans/requirements_dev.txt
# pip install -r conans/requirements_server.txt
# pip install meson

# - name: Run tests
# shell: bash
# run: |
# if [ "${{ matrix.test-type }}" == "unittests" ]; then
# pytest test/unittests --durations=20 -n 4 -rs
# elif [ "${{ matrix.test-type }}" == "integration" ]; then
# pytest test/integration --durations=20 -n 4 -rs
# elif [ "${{ matrix.test-type }}" == "functional" ]; then
# pytest test/functional --durations=20 -n 4 -rs
# fi

linux_docker_tests:
needs: build_container
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/conan-tests:latest
options: --user conan -v /var/run/docker.sock:/var/run/docker.sock
strategy:
matrix:
python-version: ['3.12.3']
name: Docker Runner Tests - Python ${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull Docker image
run: docker pull ghcr.io/${{ github.repository_owner }}/conan-tests:latest

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r conans/requirements.txt
pip install -r conans/requirements_dev.txt
pip install -r conans/requirements_server.txt
pip install meson

- name: Run tests
shell: bash
run: |
pytest -m docker_runner --durations=20 -rs
Loading
Loading