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

ENH: CI updates #1783

Merged
merged 2 commits into from
Jul 26, 2024
Merged
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
8 changes: 0 additions & 8 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ jobs:
build_type: "Release",
generators: "Ninja"
}
- {
name: "Macos-11-clang",
os: macos-11,
cc: "clang",
cxx: "clang++",
build_type: "Release",
generators: "Ninja"
}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release-docker-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
release:
types: [created]
env:
CMAKE_VERSION: 3.23.1
CMAKE_VERSION: 3.23.1 # for ubuntu
jobs:
build:
name: ${{ matrix.config.name }}
Expand All @@ -13,17 +13,17 @@ jobs:
matrix:
config:
- {
name: "Centos7-GCC",
os_desc: centos7,
image: "centos/devtoolset-7-toolchain-centos7:7",
name: "almalinux-8-GCC",
os_desc: almalinux8,
image: "almalinux:8",
build_type: "Release",
cc: "gcc",
cxx: "g++",
generators: "Unix Makefiles"
}
- {
name: "Ubuntu-18.04-GCC",
os_desc: ubuntu-18.04,
os_desc: ubuntu18.04,
image: "ubuntu:18.04",
build_type: "Release",
cc: "gcc",
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Get ANTs version and set artifact name
run: |
echo "ANTS_VERSION=${ANTS_TAG#v}" >> $GITHUB_ENV
echo "ARTIFACT=ants-${ANTS_TAG}-${{ matrix.config.os }}-${{ runner.arch }}-${{ matrix.config.cc }}.zip" >> $GITHUB_ENV
echo "ARTIFACT=ants-${ANTS_VERSION}-${{ matrix.config.os_desc }}-${{ runner.arch }}-${{ matrix.config.cc }}.zip" >> $GITHUB_ENV
env:
ANTS_TAG: ${{ github.ref_name }}

Expand All @@ -47,15 +47,15 @@ jobs:
docker pull ${{ matrix.config.image }}
docker create --name build_container -v ${{ github.workspace }}:/workspace -v ${{ runner.temp }}/artifact:/artifact ${{ matrix.config.image }} sleep infinity
docker start build_container
- name: Install dependencies on Centos
if: startsWith(matrix.config.name, 'Centos7')
- name: Install dependencies on Alma
if: startsWith(matrix.config.name, 'almalinux')
run: |
docker exec --user root build_container bash -c "
yum -y update && yum clean all
yum -y install devtoolset-7 git zlib-devel
curl -OL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh
chmod +x cmake-${CMAKE_VERSION}-linux-x86_64.sh
./cmake-${CMAKE_VERSION}-linux-x86_64.sh --skip-license --prefix=/usr/local
yum groupinstall -y 'Development Tools'
yum install -y cmake
cmake --version
gcc --version
"
- name: Install dependencies on Ubuntu
if: startsWith(matrix.config.name, 'Ubuntu-18.04')
Expand Down