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

nicer Github action to build, test, and push our images #164

Merged
merged 5 commits into from
Oct 16, 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
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
test_platform: ['ArchLinux','Debian-stable','Debian-testing','Fedora','Fedora-32','Fedora-rawhide','Ubuntu','Ubuntu-GCC-master']
test_platform: ['ArchLinux','Debian-stable','Debian-testing','Fedora','Fedora-32','Fedora-rawhide','Ubuntu']
fail-fast: false

steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Compile images
run: bash -x ./test.sh ${{ matrix.test_platform }}
run: bash ./test.sh ${{ matrix.test_platform }}

- name: Push images
run: |
[ -n "$ACTIONS_RUNNER_DEBUG" ] && set -x
if ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}} && ${{ github.ref == 'refs/heads/master' }}; then
docker login -u maxgimeno -p ${{ secrets.PASSWD }}
bash -x ./push.sh ${{ matrix.test_platform }}
bash ./push.sh ${{ matrix.test_platform }}
else
echo "Don't upload on pull_requests"
fi
8 changes: 0 additions & 8 deletions CentOS-7-ICC-2016-Release/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC-2016-Release/init.cmake

This file was deleted.

26 changes: 0 additions & 26 deletions CentOS-7-ICC-2016/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions CentOS-7-ICC-2016/init.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions CentOS-7-ICC-Release/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC-Release/init.cmake

This file was deleted.

37 changes: 0 additions & 37 deletions CentOS-7-ICC-beta/Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions CentOS-7-ICC-beta/config.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC-beta/init.cmake

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC-beta/intel.sh

This file was deleted.

29 changes: 0 additions & 29 deletions CentOS-7-ICC/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions CentOS-7-ICC/config.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC/init.cmake

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-ICC/intel.sh

This file was deleted.

8 changes: 0 additions & 8 deletions CentOS-7-Release/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions CentOS-7-Release/init.cmake

This file was deleted.

46 changes: 0 additions & 46 deletions CentOS-7/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions CentOS-7/init.cmake

This file was deleted.

24 changes: 2 additions & 22 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

[ -n "$ACTIONS_RUNNER_DEBUG" ] && set -x

if [ "$1" = ArchLinux ]
then
docker push cgal/testsuite-docker:archlinux
Expand All @@ -12,26 +14,6 @@ then
docker push cgal/testsuite-docker:archlinux-clang-cxx17-release
docker push cgal/testsuite-docker:archlinux-clang-cxx20-release
docker push cgal/testsuite-docker:archlinux-clang-release
elif [ "$1" = CentOS-5 ]
then
docker push cgal/testsuite-docker:centos5
elif [ "$1" = CentOS-6 ]
then
docker push cgal/testsuite-docker:centos6
docker push cgal/testsuite-docker:centos6-cxx11-boost157
elif [ "$1" = CentOS-6-32 ]
then
docker push cgal/testsuite-docker:centos6-32
elif [ "$1" = CentOS-7-ICC-beta ]
then
docker push cgal/testsuite-docker:centos7-icc-beta
elif [ "$1" = CentOS-7-ICC ]
then
docker push cgal/testsuite-docker:centos7-icc
elif [ "$1" = CentOS-7 ]
then
docker push cgal/testsuite-docker:centos7
docker push cgal/testsuite-docker:centos7-release
elif [ "$1" = Debian-stable ]
then
docker push cgal/testsuite-docker:debian-stable
Expand Down Expand Up @@ -61,8 +43,6 @@ then
docker push cgal/testsuite-docker:ubuntu-cxx11
docker push cgal/testsuite-docker:ubuntu-no-deprecated-code
docker push cgal/testsuite-docker:ubuntu-no-gmp-no-leda
elif [ "$1" = Ubuntu-GCC-master ]
then
docker push cgal/testsuite-docker:ubuntu-gcc6
docker push cgal/testsuite-docker:ubuntu-gcc6-cxx1z
docker push cgal/testsuite-docker:ubuntu-gcc6-release
Expand Down
Loading