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

[Windows] GH Actions #17205

Draft
wants to merge 184 commits into
base: develop2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 150 commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
ece4f6f
wip
franramirez688 Oct 11, 2024
6ab5432
Improved CMake installations. Removed some CMake versions
franramirez688 Oct 15, 2024
af284af
tests script
franramirez688 Oct 15, 2024
6e5563f
wip
franramirez688 Oct 15, 2024
f5bf496
To powershell
franramirez688 Oct 15, 2024
88715f8
To powershell
franramirez688 Oct 15, 2024
9de7d83
To powershell
franramirez688 Oct 15, 2024
6e2b097
To powershell
franramirez688 Oct 15, 2024
b42dc63
To powershell
franramirez688 Oct 15, 2024
69d4004
To powershell
franramirez688 Oct 15, 2024
b890807
To powershell
franramirez688 Oct 15, 2024
38bee43
To powershell
franramirez688 Oct 15, 2024
e861cf1
To powershell
franramirez688 Oct 15, 2024
201ba61
wip
franramirez688 Oct 15, 2024
60cf0ed
wip
franramirez688 Oct 15, 2024
60e83bb
wip
franramirez688 Oct 15, 2024
c16d23c
wip
franramirez688 Oct 15, 2024
faf04dc
wip
franramirez688 Oct 15, 2024
a974cbe
wip
franramirez688 Oct 16, 2024
20dd812
wip
franramirez688 Oct 16, 2024
71ab243
wip
franramirez688 Oct 16, 2024
83ebcaa
wip
franramirez688 Oct 16, 2024
2f1bd2a
wip
franramirez688 Oct 16, 2024
169a095
wip
franramirez688 Oct 16, 2024
83dd15a
wip
franramirez688 Oct 16, 2024
d85eceb
wip
franramirez688 Oct 16, 2024
d72114a
wip
franramirez688 Oct 16, 2024
9e3e6e5
wip
franramirez688 Oct 16, 2024
541a0e5
wip
franramirez688 Oct 16, 2024
5e873fd
wip
franramirez688 Oct 16, 2024
ad18d43
wip
franramirez688 Oct 16, 2024
9ff75f3
wip
franramirez688 Oct 16, 2024
42e7337
wip
franramirez688 Oct 16, 2024
165b8af
wip
franramirez688 Oct 16, 2024
a54ef9b
wip
franramirez688 Oct 16, 2024
667349f
wip
franramirez688 Oct 17, 2024
8f7d2fb
wip
franramirez688 Oct 17, 2024
dabf1e8
wip
franramirez688 Oct 17, 2024
5f9bce9
wip
franramirez688 Oct 17, 2024
1250cfd
wip
franramirez688 Oct 17, 2024
aa4a91f
wip
franramirez688 Oct 17, 2024
c606cb4
wip
franramirez688 Oct 17, 2024
217a85d
wip
franramirez688 Oct 17, 2024
8123a42
wip
franramirez688 Oct 17, 2024
1eae579
wip
franramirez688 Oct 17, 2024
88a8d2b
wip
franramirez688 Oct 17, 2024
317fe32
wip
franramirez688 Oct 18, 2024
1be3a40
wip
franramirez688 Oct 18, 2024
666f5c8
Trying full installation
franramirez688 Oct 18, 2024
c37bfc2
wip
franramirez688 Oct 18, 2024
9b24998
wip
franramirez688 Oct 18, 2024
b3d31c4
Running tests
franramirez688 Oct 18, 2024
874505b
Test
franramirez688 Oct 18, 2024
d3ce40f
Using pacman too
franramirez688 Oct 18, 2024
6e09073
Caching everything
franramirez688 Oct 18, 2024
e37d7d2
wip
franramirez688 Oct 18, 2024
5acd9a1
wip
franramirez688 Oct 21, 2024
922f130
wip
franramirez688 Oct 21, 2024
34874b1
wip
franramirez688 Oct 21, 2024
1d6f278
wip
franramirez688 Oct 21, 2024
25547a4
wip
franramirez688 Oct 21, 2024
e3ed398
wip
franramirez688 Oct 21, 2024
4d97207
wip
franramirez688 Oct 21, 2024
70b2676
wip
franramirez688 Oct 21, 2024
bfaf411
wip
franramirez688 Oct 21, 2024
0fd11dd
wip
franramirez688 Oct 21, 2024
c19a79c
wip
franramirez688 Oct 22, 2024
38ca35c
wip
franramirez688 Oct 22, 2024
f8374cd
wip
franramirez688 Oct 22, 2024
da2cec6
wip
franramirez688 Oct 22, 2024
5eb5a07
wip
franramirez688 Oct 22, 2024
ffe3b2f
wip
franramirez688 Oct 22, 2024
090d15a
wip
franramirez688 Oct 23, 2024
188afe8
wip
franramirez688 Oct 23, 2024
05d0512
wip
franramirez688 Oct 23, 2024
08d779c
wip
franramirez688 Oct 23, 2024
8b6c7da
wip
franramirez688 Oct 23, 2024
488d506
wip
franramirez688 Oct 23, 2024
2296007
wip
franramirez688 Oct 23, 2024
8e96dfe
minor changes
czoido Oct 23, 2024
9846b0b
wip
czoido Oct 23, 2024
4ace731
comment
czoido Oct 23, 2024
99c4270
comment line
czoido Oct 23, 2024
e920630
do not divide tests
czoido Oct 23, 2024
2fce809
better msys install
czoido Oct 23, 2024
05e4f76
less vs components
czoido Oct 23, 2024
fd8c5de
dont use action
czoido Oct 23, 2024
e97c417
remove cmake
czoido Oct 23, 2024
1693eea
run fail
czoido Oct 23, 2024
2fa930f
wip
czoido Oct 23, 2024
aca9483
add 143 toolset, will it work?
czoido Oct 23, 2024
991e36d
fix test
czoido Oct 23, 2024
4af201a
add update
czoido Oct 23, 2024
aa82f4c
revert
czoido Oct 23, 2024
68c589a
fix update detection
czoido Oct 23, 2024
c87bf06
wip
czoido Oct 23, 2024
a32f7f8
wip
czoido Oct 23, 2024
bc1f7f2
fix
czoido Oct 23, 2024
76edde9
wip
czoido Oct 23, 2024
fb0dd8a
revert change
czoido Oct 23, 2024
c41e73f
fix update
czoido Oct 23, 2024
4ce025e
revert
czoido Oct 23, 2024
2ccb0b5
skip performance
czoido Oct 23, 2024
c5551b8
wip
czoido Oct 23, 2024
7481a17
use valid jinja
czoido Oct 23, 2024
d1e963e
more fixmes
czoido Oct 23, 2024
cd22d28
add vc140
czoido Oct 23, 2024
5ebc688
wip
czoido Oct 23, 2024
6dc3bb2
fix toolset and check
czoido Oct 23, 2024
b9c762b
check with vs_buildtools
czoido Oct 23, 2024
c0e4ba5
wip
czoido Oct 23, 2024
07a77a9
wip
czoido Oct 23, 2024
1c29905
wip
czoido Oct 23, 2024
c99a1b8
wip
franramirez688 Oct 24, 2024
3237ab1
use 194 instead of 193 as we have vs 17.11 v144 installed
czoido Oct 24, 2024
db795bb
use 194
czoido Oct 24, 2024
979450e
if this test runs with cmake 3.15 we have to lower to 191
czoido Oct 24, 2024
62d75bd
just run failing
czoido Oct 24, 2024
d5c7090
use modern cmake to allow vs 17 generator
czoido Oct 24, 2024
f450aa4
sleep more
czoido Oct 24, 2024
9fe2ed7
print out
czoido Oct 24, 2024
6ce1189
check vs
czoido Oct 24, 2024
b2f92d1
check gcc
czoido Oct 24, 2024
4ee7eb3
set cache for choco
czoido Oct 24, 2024
c64e297
add choco cache and remove gcc from path
czoido Oct 24, 2024
cac1064
fix remove gcc from path
czoido Oct 24, 2024
06a617c
add 1 second delay
czoido Oct 24, 2024
f83cd24
remove strawberry from path
czoido Oct 24, 2024
d4ac48f
sleep 2
czoido Oct 24, 2024
37275c1
check clock precission
czoido Oct 24, 2024
ab16e5f
print messages
czoido Oct 24, 2024
a801ddd
more prints
czoido Oct 24, 2024
2763eb7
comment not needed for test
czoido Oct 24, 2024
63b029e
skip test in win
czoido Oct 24, 2024
b25b2ff
wip
czoido Oct 24, 2024
8f87917
use same py versions as in current ci
czoido Oct 24, 2024
b991cbd
remove print
czoido Oct 24, 2024
224450a
some optimizations for msys2 installs
czoido Oct 24, 2024
f91079b
independent from shell
czoido Oct 24, 2024
ef626b1
wip
czoido Oct 24, 2024
fb391da
wip
czoido Oct 25, 2024
5b4134c
restore test
czoido Oct 25, 2024
904caef
explain test
czoido Oct 25, 2024
51ea7f9
reduce a bit components
czoido Oct 25, 2024
5769d5b
all components
czoido Oct 25, 2024
f9e4c11
Merge branch 'develop2' into frm/win_gh_actions
czoido Oct 25, 2024
d2df267
fix skip
czoido Oct 25, 2024
935ec05
Merge branch 'frm/win_gh_actions' of github.com:franramirez688/conan …
czoido Oct 25, 2024
e933cb4
do not cache vs
czoido Oct 25, 2024
1286966
Merge branch 'develop2' into frm/win_gh_actions
czoido Oct 25, 2024
9d2cc07
Update .github/workflows/win-tests.yml
czoido Oct 29, 2024
9f2ca6e
Merge branch 'develop2' into frm/win_gh_actions
czoido Oct 29, 2024
48c8b6f
Merge branch 'develop2' into frm/win_gh_actions
czoido Oct 29, 2024
f95f111
debug qbs
czoido Oct 30, 2024
8a09d02
avoid performance test
czoido Oct 30, 2024
0262127
wip
czoido Oct 30, 2024
e87647f
move to _
czoido Oct 30, 2024
b8f3a2d
wip
czoido Oct 30, 2024
0fb08e5
wip
czoido Oct 30, 2024
5b90dfb
add mark to qbs tests
czoido Nov 4, 2024
b4f9619
Merge branch 'develop2' into frm/win_gh_actions
czoido Nov 8, 2024
ae02449
Merge branch 'develop2' into frm/win_gh_actions
czoido Nov 8, 2024
6e324b0
skip test
czoido Nov 11, 2024
3ef3fac
Merge branch 'frm/win_gh_actions' of github.com:franramirez688/conan …
czoido Nov 11, 2024
67d9c31
Merge branch 'develop2' into frm/win_gh_actions
czoido Nov 11, 2024
a14b1d8
Merge branch 'develop2' into frm/win_gh_actions
czoido Nov 20, 2024
14c75b4
remove debug changes
czoido Nov 26, 2024
0070b92
xfail test
czoido Nov 26, 2024
5f99360
Merge branch 'develop2' of github.com:conan-io/conan into frm/win_gh_…
czoido Nov 26, 2024
d5220e1
Configure Git to maintain consistent line endings
czoido Nov 26, 2024
2a674fb
fix versions
czoido Nov 26, 2024
b40257c
fix winsdk version
czoido Nov 26, 2024
3987bf0
xfail test
czoido Nov 26, 2024
ea6d83b
try to install v143
czoido Nov 26, 2024
784a95b
build with vs 17 and msvc 193
czoido Nov 26, 2024
8244358
try again
czoido Nov 26, 2024
8a38f5c
wip
czoido Nov 27, 2024
387471d
wip
czoido Nov 27, 2024
a697344
wip
czoido Nov 27, 2024
dd8a540
wip
czoido Nov 27, 2024
11695b5
wip
czoido Nov 27, 2024
de5c207
wip
czoido Nov 27, 2024
b969ce1
revert
czoido Nov 27, 2024
0787b7b
try to modify
czoido Nov 27, 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.

191 changes: 191 additions & 0 deletions .github/workflows/win-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
name: Windows 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:
testing:
strategy:
fail-fast: true
matrix:
python-version: ['3.8', '3.6']
czoido marked this conversation as resolved.
Show resolved Hide resolved

runs-on: windows-2022

name: Conan (${{ matrix.python-version }})

steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Visual Studio Build Tools
run: |
Invoke-WebRequest -Uri "https://aka.ms/vs/15/release/vs_buildtools.exe" -OutFile "vs_buildtools.exe"
Start-Process -FilePath ".\vs_buildtools.exe" -ArgumentList `
"--quiet", "--wait", "--norestart", "--nocache", `
"--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", `
"--add", "Microsoft.VisualStudio.Component.Windows81SDK", `
"--add", "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", `
"--add", "Microsoft.Component.MSBuild", `
"--add", "Microsoft.VisualStudio.Component.VC.140", `
"--add", "Microsoft.VisualStudio.Component.VC.v141.x86.x64" -Wait

- name: Cache pip packages
uses: actions/cache@v4
with:
path: C:\Users\runneradmin\AppData\Local\pip\cache
key: pip-packages-${{ runner.os }}-${{ hashFiles('conans/requirements*.txt') }}
restore-keys: |
pip-packages-${{ runner.os }}-

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

- name: "Set choco cache"
run: choco config set cacheLocation C:\choco-cache

- uses: actions/cache@v4
with:
path: C:\choco-cache
key: choco-cache

- name: Install Chocolatey packages
run: |
choco install pkgconfiglite --version 0.28
choco install ninja --version 1.10.2
choco install mingw
choco install cygwin
choco install cyg-get
cyg-get automake gcc-g++ make binutils --verbose

- uses: msys2/setup-msys2@v2
id: msys2-setup
with:
update: true
# It's important that the default environment that is used is MSYS
# we check this default in a test
msystem: MSYS
install: >-
mingw-w64-x86_64-toolchain
mingw-w64-i686-toolchain
base-devel
gcc
autoconf-wrapper
automake

- name: Cache CMake and Bazel installations
id: cache-tools
uses: actions/cache@v4
with:
path: |
C:\tools\cmake\3.15.7
C:\tools\cmake\3.19.7
C:\tools\cmake\3.23.5
C:\tools\bazel\6.3.2
C:\tools\bazel\7.1.2
key: ${{ runner.os }}-conan-tools-cache

- name: Build CMake old versions of CMake
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
$CMAKE_BUILD_VERSIONS = "3.15.7", "3.19.7"
foreach ($version in $CMAKE_BUILD_VERSIONS) {
Write-Host "Downloading CMake version $version for Windows..."
$destination = "C:\tools\cmake\$version"
if (-not (Test-Path $destination)) {
New-Item -Path $destination -ItemType Directory
}
$major_minor_version = ($version -split '\.')[0..1] -join '.'
$url = "https://cmake.org/files/v$major_minor_version/cmake-$version-win64-x64.zip"
$zipFile = "cmake-$version-windows-x86_64.zip"
Invoke-WebRequest -Uri $url -OutFile $zipFile
Expand-Archive -Path $zipFile -DestinationPath $destination -Force
Remove-Item $zipFile
}
- name: Install modern CMake versions
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
$CMAKE_BUILD_VERSIONS = "3.23.5"
foreach ($version in $CMAKE_BUILD_VERSIONS) {
$destination = "C:\tools\cmake\$version"
if (-not (Test-Path $destination)) {
New-Item -Path $destination -ItemType Directory
}
$major_minor_version = ($version -split '\.')[0..1] -join '.'
$url = "https://cmake.org/files/v$major_minor_version/cmake-$version-windows-x86_64.zip"
$zipFile = "cmake-$version-windows-x86_64.zip"
Invoke-WebRequest -Uri $url -OutFile $zipFile
Expand-Archive -Path $zipFile -DestinationPath $destination -Force
Remove-Item $zipFile
}
- name: Install Bazel versions
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
$BAZEL_BUILD_VERSIONS = "6.3.2", "7.1.2"
foreach ($version in $BAZEL_BUILD_VERSIONS) {
Write-Host "Downloading Bazel version $version for Windows..."
$destination = "C:\tools\bazel\$version"
if (-not (Test-Path $destination)) {
New-Item -Path $destination -ItemType Directory
}
$major_minor_version = ($version -split '\.')[0..1] -join '.'
$url = "https://github.com/bazelbuild/bazel/releases/download/$version/bazel-$version-windows-x86_64.zip"
$zipFile = "bazel-$version-windows-x86_64.zip"
Invoke-WebRequest -Uri $url -OutFile $zipFile
Expand-Archive -Path $zipFile -DestinationPath $destination -Force
Remove-Item $zipFile
}

- name: Run Tests
run: |
$pathsToRemove = @()
$pathsToRemove += "C:\mingw64\bin" # To avoid that CMake finds gcc there
$pathsToRemove += "C:\Strawberry\c\bin"
$pathsToRemove += "C:\Program Files\CMake\bin" # Remove the default CMake version
$pathsToRemove += "C:\Program Files\Git\usr\bin" # To avoid using uname and other tools from there
foreach ($dir in $pathsToRemove) {
$newPath = ($env:PATH -split ";") -ne $dir -join ";"
[System.Environment]::SetEnvironmentVariable('PATH', $newPath)
Write-Host "$dir removed from PATH. Current PATH: $env:PATH"
}

# Check GCC is not in Path
$gccPath = Get-Command gcc.exe -ErrorAction SilentlyContinue
if ($null -ne $gccPath) {
Write-Host "GCC found in PATH at: $($gccPath.Path)"
} else {
Write-Host "GCC not found in PATH."
}

$shortGuid = [System.Guid]::NewGuid().ToString().Substring(0, 4)
$randomFolder = [System.IO.Path]::Combine("D:\\", "tmp_tests", $shortGuid)
New-Item -ItemType Directory -Force -Path $randomFolder
$env:CONAN_TEST_FOLDER = $randomFolder
$env:Path = "C:\tools\cmake\3.15.7\cmake-3.15.7-win64-x64\bin;" + $env:Path

$msys2Path = '${{ steps.msys2-setup.outputs.msys2-location }}'
[System.Environment]::SetEnvironmentVariable('MSYS2_PATH', $msys2Path, [System.EnvironmentVariableTarget]::Process)
Write-Host "Added MSYS2_PATH environment variable: $msys2Path"

pytest test/unittests test/integration test/functional -n=auto --durations=1000
Loading