Skip to content
Open
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
44 changes: 41 additions & 3 deletions .github/workflows/ci-distro.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI (Distro)

## This GitHub Actions workflow builds and tests sage with selected environments,
## This GitHub Actions workflow builds and tests sage-the-distro on various platforms
## whenever a tag is pushed or a pull request changes relevant build files.
##
## It builds and checks some sage spkgs as defined in TARGETS.
Expand Down Expand Up @@ -46,7 +46,7 @@ concurrency:
cancel-in-progress: true

jobs:
minimal:
linux-minimal:
if: ${{ success() || failure() }}
uses: ./.github/workflows/docker.yml
with:
Expand All @@ -63,7 +63,7 @@ jobs:
["minimal"]
docker_push_repository: ghcr.io/${{ github.repository }}/

standard:
linux:
uses: ./.github/workflows/docker.yml
with:
free_disk_space: true
Expand All @@ -75,3 +75,41 @@ jobs:
tox_packages_factors: >-
["standard"]
docker_push_repository: ghcr.io/${{ github.repository }}/

macos:
name: Build and Test (macos-${{ matrix.version }})
runs-on: macos-${{ matrix.version }}
strategy:
fail-fast: false
matrix:
version:
- '13'
- '14'
- '15'

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install dependencies
run: |
eval $(build/bin/sage-print-system-package-command homebrew update)
eval $(build/bin/sage-print-system-package-command homebrew --yes --ignore-missing install $(build/bin/sage-get-system-packages homebrew _bootstrap _prereq $(build/bin/sage-package list :standard:)))

- name: Build
run: |
source ./.homebrew-build-env
./bootstrap
./configure --enable-download-from-upstream-url
make build V=0
env:
MAKE: 'make -j6'

- name: Test
run: |
source ./.homebrew-build-env # Needed so that runtime cython can find the dependencies
./sage -t --all -p4
71 changes: 0 additions & 71 deletions .github/workflows/ci-macos.yml

This file was deleted.

7 changes: 1 addition & 6 deletions src/doc/en/developer/portability_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1001,12 +1001,7 @@ GitHub Actions are enabled.
In particular, it automatically runs on our main repository sagemath/sage
on every release tag.

This is defined in the files

- :sage_root:`.github/workflows/ci-distro.yml`
(which calls :sage_root:`.github/workflows/docker.yml`) and

- :sage_root:`.github/workflows/ci-macos.yml`.
This is defined in the file :sage_root:`.github/workflows/ci-distro.yml`.

GitHub Actions runs these build jobs on 2-core machines with 7 GB of
RAM memory and 14 GB of SSD disk space, cf.
Expand Down
Loading