From 9f52a99423c60826d91f3720987f0f7dd86ba8e0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:33:38 -0400 Subject: [PATCH 1/6] ci: setup python 3.12 for build Signed-off-by: Rui Chen --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e52b926..49a7ac1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,15 +2,20 @@ name: build CI on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: configure run: ./configure - name: make From 8f4c883f5f47fc91717bad343044d1db0c195a62 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:34:19 -0400 Subject: [PATCH 2/6] ci: add macos build support Signed-off-by: Rui Chen --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49a7ac1..4e13dfd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,17 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, macos-latest] + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} - name: configure run: ./configure From 6fbd77a54fa4792fd6fe61fedac18471fc9aa070 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:35:36 -0400 Subject: [PATCH 3/6] ci: update trigger to run with fork Signed-off-by: Rui Chen --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e13dfd..9b4fba1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,6 @@ name: build CI on: push: - branches: [master] pull_request: branches: [master] From 691019a26f2ce2a4057bf9e086f80b92453c62c0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:37:20 -0400 Subject: [PATCH 4/6] ci: update job name and no fail fast Signed-off-by: Rui Chen --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b4fba1..78b256f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,10 @@ on: jobs: build: + name: Build on ${{ matrix.os }} with Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-22.04, macos-latest] python-version: ["3.11", "3.12"] From d256d3f7c8ab8cdd5f4633533ffa4e81f8e17fb0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:38:43 -0400 Subject: [PATCH 5/6] ci: install setuptools for py3.12 Signed-off-by: Rui Chen --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78b256f..15145f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,12 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install setuptools for Python 3.12 + if: matrix.python-version == '3.12' + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + - name: configure run: ./configure - name: make From 2c44b626ec92a41d03c78cfacca785c51f7c13d5 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 21 Aug 2024 15:45:43 -0400 Subject: [PATCH 6/6] try out macos-13 Signed-off-by: Rui Chen --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15145f0..d9a698f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-latest] + os: [ubuntu-22.04, macos-13] python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4