-
-
Notifications
You must be signed in to change notification settings - Fork 522
93 lines (83 loc) · 2.51 KB
/
ci-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI Linux
on:
push:
tags:
- '*'
# TODO: Remove this before merging
pull_request:
workflow_dispatch:
# Allow to run manually
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- ubuntu:trusty
- ubuntu:xenial
- ubuntu:bionic
- ubuntu:focal
- ubuntu:jammy
- ubuntu:lunar
- ubuntu:mantic
- debian:buster
- debian:bullseye
- debian:bookworm
- debian:trixie
- debian:sid
- linuxmintd/mint:20.1
- linuxmintd/mint:20.2
- linuxmintd/mint:20.3
- linuxmintd/mint:21
- linuxmintd/mint:21.1
- linuxmintd/mint:21.2
- fedora:30
- fedora:31
- fedora:32
- fedora:33
- fedora:34
- fedora:35
- fedora:36
- fedora:37
- fedora:38
- fedora:39
- centos:centos7
- quay.io/centos/centos:stream8
- quay.io/centos/centos:stream9
- almalinux:8
- almalinux:9
- sheerluck/sage-on-gentoo-stage4
- archlinux
- opensuse/leap:15.3
- opensuse/leap:15.4
- opensuse/leap:15.5
- opensuse/tumbleweed
- i386/ubuntu:bionic
- i386/debian:bullseye
container:
image: ${{ matrix.container }}
steps:
- name: Checkout code
# cannot use v4 yet because of https://github.com/actions/checkout/issues/1487
uses: actions/checkout@v3
- name: Check for Python version
run: |
echo "install_python=$(python3 -c 'import sys; print(sys.version_info < (3, 9))' || echo 'True')" >> $GITHUB_ENV
- name: Setup Python
uses: actions/setup-python@v2
if: ${{ env.install_python }} == 'True'
with:
python-version: 3.9
- name: Install dependencies
run: |
eval $(build/bin/sage-print-system-package-command auto update)
eval $(build/bin/sage-print-system-package-command auto --yes install $(build/bin/sage-get-system-packages auto $(build/bin/sage-package list :standard:)))
- name: Bootstrap
run: python3 -m sage_setup.autogen.interpreters src/sage/ext/interpreters
env:
PYTHONPATH: src
- name: Build
run: pip install --no-build-isolation --config-settings=builddir=builddir . -v
- name: Test
run: ./sage -t --all -p4 || true