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

CI: Use self hosted machine for runners #72

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
20 changes: 10 additions & 10 deletions .github/workflows/build-numpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
NumPyMultiarrayTests:

runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Checkout x86-simd-sort
Expand All @@ -24,10 +24,10 @@ jobs:
working-directory: ${{ github.workspace }}/x86-simd-sort
run: git switch -c pr-branch

- name: Install build dependencies
run: |
sudo apt update
sudo apt -y install g++-12 gcc-12 git
#- name: Install build dependencies
#run: |
#sudo apt update
#sudo apt -y install g++-12 gcc-12 git

- name: Checkout NumPy main
uses: actions/checkout@v3
Expand All @@ -38,9 +38,9 @@ jobs:
ref: main
path: numpy

- uses: actions/setup-python@v4
with:
python-version: '3.10'
#- uses: actions/setup-python@v4
#with:
#python-version: '3.10'

- name: Install NumPy dependencies
working-directory: ${{ github.workspace }}/numpy
Expand All @@ -59,8 +59,8 @@ jobs:
- name: Build & run NumPy sort tests
working-directory: ${{ github.workspace }}/numpy
env:
CXX: g++-12
CC: gcc-12
CXX: g++
CC: gcc
run: |
python runtests.py -t numpy/core/tests/test_multiarray.py

Expand Down
84 changes: 44 additions & 40 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,35 @@ on:
jobs:
ICX:

runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt update
sudo apt -y install g++-10 libgtest-dev meson curl git cmake

- name: Install google benchmarks
run: |
git clone https://github.com/google/benchmark.git
cd benchmark
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
sudo cmake --build "build" --config Release --target install

- name: Install Intel SDE
run: |
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
#- name: Install dependencies
#run: |
# sudo apt update
# sudo apt -y install g++-10 libgtest-dev meson curl git cmake

#- name: Install google benchmarks
# run: |
# git clone https://github.com/google/benchmark.git
# cd benchmark
# cmake -E make_directory "build"
# cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
# sudo cmake --build "build" --config Release --target install

#- name: Install Intel SDE
# run: |
# curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
# mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
# sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde

- name: Build
env:
CXX: g++-10
CXX: g++-9
CFLAGS: ""
CXXFLAGS: ""
run: |
make clean
meson setup --warnlevel 2 --werror --buildtype plain builddir
Expand All @@ -47,33 +49,35 @@ jobs:

SPR:

runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt update
sudo apt -y install g++-12 libgtest-dev meson curl git cmake

- name: Install google benchmarks
run: |
git clone https://github.com/google/benchmark.git
cd benchmark
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
sudo cmake --build "build" --config Release --target install

- name: Install Intel SDE
run: |
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
#- name: Install dependencies
#run: |
# sudo apt update
# sudo apt -y install g++-12 libgtest-dev meson curl git cmake

#- name: Install google benchmarks
# run: |
# git clone https://github.com/google/benchmark.git
# cd benchmark
# cmake -E make_directory "build"
# cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
# sudo cmake --build "build" --config Release --target install

#- name: Install Intel SDE
# run: |
# curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
# mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
# sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde

- name: Build
env:
CXX: g++-12
CXX: g++
CFLAGS: ""
CXXFLAGS: ""
run: |
make clean
meson setup --warnlevel 2 --werror --buildtype plain builddir
Expand Down
Loading