Skip to content

Commit 766f4b1

Browse files
committed
MinCI
1 parent 0011849 commit 766f4b1

1 file changed

Lines changed: 32 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,35 @@ env:
2020

2121
jobs:
2222
build-ubuntu:
23-
name: >-
24-
Ubuntu
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
bolt:
29-
- false
30-
free-threading:
31-
- false
32-
os:
33-
- ubuntu-24.04
34-
uses: ./.github/workflows/reusable-ubuntu.yml
35-
with:
36-
config_hash: ${{ needs.build-context.outputs.config-hash }}
37-
bolt-optimizations: ${{ matrix.bolt }}
38-
free-threading: ${{ matrix.free-threading }}
39-
os: ${{ matrix.os }}
23+
name: build and test (ubuntu-24.04)
24+
runs-on: ubuntu-24.04
25+
timeout-minutes: 60
26+
env:
27+
OPENSSL_VER: 3.0.15
28+
PYTHONSTRICTEXTENSIONBUILD: 1
29+
TERM: linux
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
34+
- name: Register gcc problem matcher
35+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
36+
- name: Install dependencies
37+
run: sudo ./.github/workflows/posix-deps-apt.sh
38+
- name: Runner image version
39+
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
40+
- name: Configure CPython
41+
# `test_unpickle_module_race` writes to the source directory, which is
42+
# read-only during builds — so we exclude it from profiling with BOLT.
43+
run: >-
44+
PROFILE_TASK='-m test --pgo --ignore test_unpickle_module_race'
45+
./configure
46+
--config-cache
47+
--with-pydebug
48+
--enable-slower-safety
49+
--enable-safety
50+
--with-openssl="$OPENSSL_DIR"
51+
- name: Display build info
52+
run: make pythoninfo
53+
- name: Tests
54+
run: ./python -m test -j4

0 commit comments

Comments
 (0)