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 ci to remove warnings #101

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
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
82 changes: 9 additions & 73 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,80 +46,19 @@ jobs:
cling: On
cling-version: '1.0'
cppyy: On
#Commented out until Ubuntu on arm Github runner becomes
#available os key to be replaced once known
#- name: ubu22-arm-gcc12-clang-repl-17
# os: ubuntu-22.04-arm
# compiler: gcc-12
# clang-runtime: '17'
# cling: Off
# cppyy: Off
#- name: ubu22-arm-gcc12-clang-repl-17-cppyy
# os: ubuntu-22.04-arm
# compiler: gcc-12
# clang-runtime: '17'
# cling: Off
# cppyy: On
#- name: ubu22-arm-gcc9-clang-repl-16
# os: ubuntu-22.04-arm
# compiler: gcc-9
# clang-runtime: '16'
# cling: Off
# cppyy: Off
#- name: ubu22-arm-gcc9-clang-repl-16-cppyy
# os: ubuntu-22.04-arm
# compiler: gcc-9
# clang-runtime: '16'
# cling: Off
# cppyy: On
#- name: ubu22-arm-gcc9-clang13-cling
# os: ubuntu-22.04-arm
# compiler: gcc-9
# clang-runtime: '13'
# cling: On
# cling-version: '1.0'
# cppyy: Off
#- name: ubu22-arm-gcc9-clang13-cling-cppyy
# os: ubuntu-22.04-arm
# compiler: gcc-9
# clang-runtime: '13'
# cling: On
# cling-version: '1.0'
# cppyy: On
# - name: win2022-msvc-clang-repl-17
# os: windows-2022
# compiler: msvc
# clang-runtime: '17'
# cling: Off
# cppyy: Off
#Commented out until rest of ci for Windows tested
#Commented out until CppInterOp passes all tests on Windows
#- name: win2022-msvc-clang-repl-17-cppyy
# os: windows-2022
# compiler: msvc
# clang-runtime: '17'
# cling: Off
# cppyy: On
# - name: win2022-msvc-clang-repl-16
# os: windows-2022
# compiler: msvc
# clang-runtime: '16'
# cling: Off
# cppyy: Off
#Commented out until rest of ci for Windows tested
#- name: win2022-msvc-clang-repl-16-cppyy
# os: windows-2022
# compiler: msvc
# clang-runtime: '16'
# cling: Off
# cppyy: On
# - name: win2022-msvc-cling
# os: windows-2022
# compiler: msvc
# clang-runtime: '13'
# cling: On
# cling-version: '1.0'
# cppyy: Off
#Commented out until rest of ci for Windows tested
#- name: win2022-msvc-cling-cppyy
# os: windows-2022
# compiler: msvc
Expand Down Expand Up @@ -179,13 +118,13 @@ jobs:
cppyy: On

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: Save PR Info on Unix systems
if: ${{ runner.os != 'windows' }}
Expand All @@ -208,8 +147,6 @@ jobs:
echo "CLING_HASH=$CLING_HASH" >> $GITHUB_ENV
echo "LLVM_HASH=$LLVM_HASH" >> $GITHUB_ENV

- uses: nelonoel/[email protected]

- name: Save PR Info on Windows systems
if: ${{ runner.os == 'windows' }}
run: |
Expand All @@ -236,8 +173,6 @@ jobs:

echo "CLING_HASH=$env:CLING_HASH" >> $GITHUB_ENV
echo "LLVM_HASH=$env:LLVM_HASH" >> $GITHUB_ENV

- uses: nelonoel/[email protected]

- name: Setup default Build Type on *nux
if: runner.os != 'windows'
Expand Down Expand Up @@ -349,6 +284,7 @@ jobs:
if: runner.os == 'macOS'
run: |
brew update
brew remove [email protected]
# workaround for https://github.com/actions/setup-python/issues/577
for pkg in $(brew list | grep '^python@'); do
brew unlink "$pkg"
Expand All @@ -358,7 +294,7 @@ jobs:
pip install distro pytest

- name: Restore Cache LLVM/Clang runtime build directory
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -437,7 +373,7 @@ jobs:
cd ../../
mkdir ./cppyy-backend/llvm-project/
#FIXME: Avoid copy command by caching based on absolute path
cp -r -v ./llvm-project/* ./cppyy-backend/llvm-project/
cp -r ./llvm-project/* ./cppyy-backend/llvm-project/
echo "Copy llvm-project folder to cppyy-backend for caching"

- name: Build LLVM/Cling on Windows systems if the cache is invalid
Expand Down Expand Up @@ -513,11 +449,11 @@ jobs:
}
cd ../../
mkdir .\cppyy-backend\llvm-project\
cp -r -v .\llvm-project\ .\cppyy-backend\
cp -r .\llvm-project\ .\cppyy-backend\
echo "Copy llvm-project folder to cppyy-backend for caching"

- name: Save Cache LLVM/Clang runtime build directory
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
with:
path: |
Expand Down
Loading