This repository was archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
Adding Python to the CI process #1106
Merged
troels-im
merged 54 commits into
microsoft:features/llvm-passes
from
troels-im:feature/passes-ci-integration
Aug 10, 2021
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
e7402c5
Adding Python to the CI process
troels-im 7c8acd6
Creating development script
troels-im 330da4b
Udpating development script
troels-im 2628e75
Disabling Linux for the time being
troels-im 730decd
Reactivating linux CI
troels-im fafdab5
Removing the need for virtualenv
troels-im 8eb3909
Updating linux image
troels-im 6c8627b
Updating name of linux build
troels-im 8ab6158
Updating name of linux build
troels-im 6a2f111
Updating working directory
troels-im 50d753b
Updating scripts
troels-im 62955a4
Fixing linux path and updating clang search function
troels-im 25f402e
Upgrading clang-format to version 11
troels-im 65bde43
Formatting to LLVM 11 toolchain
troels-im c7bde93
Removing visibility check in CMake
troels-im 8e3b886
Forcing Clang as compiler
troels-im 1ce8619
Removing llvm-toolchain-11
troels-im 47897bc
Improving search for clang tidy
troels-im 2c0504a
Extending Clang tidy search
troels-im 1c70da9
Fixing apt install
troels-im 60e0a02
Fixing apt install
troels-im 008c9d4
Refactoring names and updating windows
troels-im ce61df0
Minor Windows CI update
troels-im 54d8725
Improving search for excutables
troels-im b992737
Adding Windos debug and OS X CI
troels-im 4e191d0
Fixing OS X tests
troels-im f69e473
Updating links and paths to executables
troels-im d1f79f5
Updating OS X build
troels-im 25b8dd9
Attempting to fix Windows build
troels-im c37361a
Fixing CMake config
troels-im 81ed163
Attempting to fix Windows path
troels-im abd1c7c
Adding message to CMake
troels-im 05d01c2
Updating with VCWhere
troels-im 4dc626f
Updating CI for Windows
troels-im 0acead5
Disabling CMake install
troels-im 287fffd
Changing to Conda package manager
troels-im 0cca8ec
Adding conda environment
troels-im 69c7c62
Adding conda environment
troels-im b2e5059
Updating the environment
troels-im 5df0095
Updating conda
troels-im 76cad51
Attempting to load LLVM in CMake
troels-im be473a6
Disbaling Windows CI
troels-im f622d68
Update build/test.ps1
troels-im 7bb0516
Update build/passes-linux.yml
troels-im 20b15d4
Update src/Passes/site-packages/TasksCI/toolchain.py
troels-im 2b81233
Update build/passes-linux.yml
troels-im b534ee2
Update build/passes-linux.yml
troels-im 4e50ac1
Update build/passes-linux.yml
troels-im 2ab0638
Update build/passes-linux.yml
troels-im 0c89e25
Merge branch 'features/llvm-passes' into feature/passes-ci-integration
bettinaheim 429e521
Build issue
bettinaheim bb2a40e
Fixing style
troels-im 16d4cd3
Fixing style
troels-im 43a97f8
Fixing missing function
troels-im File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| steps: | ||
| - script: | | ||
| sudo apt update -y | ||
| sudo apt install -y clang-11 cmake clang-format-11 clang-tidy-11 | ||
| sudo apt-get install -y llvm-11 lldb-11 llvm-11-dev libllvm11 llvm-11-runtime | ||
| export CC=clang-11 | ||
| export CXX=clang++ | ||
| cd src/Passes/ | ||
|
|
||
| pip install -r requirements.txt | ||
| chmod +x manage | ||
| ./manage runci | ||
bettinaheim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| displayName: Linux build and CI for passes | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
|
|
||
| steps: | ||
| - script: | | ||
| brew install llvm@11 | ||
| brew install cmake | ||
| brew install [email protected] | ||
| brew unlink [email protected] && brew link [email protected] | ||
|
|
||
| # Updating paths | ||
| export PATH="/usr/local/opt/python/libexec/bin:$PATH" | ||
| export PATH="/usr/local/opt/llvm@11/bin:$PATH" | ||
| export LDFLAGS="${LDFLAGS} -L/usr/local/opt/llvm@11/lib" | ||
| export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/llvm@11/include" | ||
|
|
||
| cd src/Passes/ | ||
| pip install -r requirements.txt | ||
| chmod +x manage | ||
| ./manage runci | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| $ErrorActionPreference = 'Continue' | ||
|
|
||
| python --version | ||
| pip --version | ||
|
|
||
| # Installing requirements for CI | ||
| cd ../src/Passes/ | ||
| pip install -r requirements.txt | ||
|
|
||
|
|
||
|
|
||
| # Installing Clang, CMake and LLVM | ||
| if (!(Get-Command clang -ErrorAction SilentlyContinue)) { | ||
| & (Join-Path $env:CONDA scripts conda.exe) install -c conda-forge llvm-tools=11.1.0 | ||
| & (Join-Path $env:CONDA scripts conda.exe) install -c conda-forge llvmdev=11.1.0 | ||
| } | ||
|
|
||
| refreshenv | ||
| $env:Path += ";C:\Miniconda\Library\LLVM\bin\" | ||
| $env:LLVM = "C:\Miniconda\Library\LLVM\" | ||
|
|
||
| cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt" | ||
|
|
||
| Get-Content "$env:temp\vcvars.txt" | Foreach-Object { | ||
| if ($_ -match "^(.*?)=(.*)$") { | ||
| Set-Content "env:\$($matches[1])" $matches[2] | ||
| } | ||
| } | ||
|
|
||
|
|
||
| # Running CI | ||
| python manage runci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ function Test-One { | |
| } | ||
| } | ||
|
|
||
|
|
||
| Test-One '../QsCompiler.sln' | ||
| Test-One '../QsFmt.sln' | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.