From c9225fa88715a3da60c055d9c6c6d1c677348574 Mon Sep 17 00:00:00 2001 From: Kefei Mo Date: Tue, 7 Mar 2023 13:26:49 -0600 Subject: [PATCH 1/3] allow github action to build wheel for multiple version --- .github/workflows/deploy-pre-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pre-release.yml b/.github/workflows/deploy-pre-release.yml index 778e4d9..514f3f7 100644 --- a/.github/workflows/deploy-pre-release.yml +++ b/.github/workflows/deploy-pre-release.yml @@ -13,11 +13,14 @@ defaults: env: LANG: en_US.utf-8 LC_ALL: en_US.utf-8 - PYTHON_VERSION: "3.8" +# PYTHON_VERSION: "3.8" Use multiple python matrix jobs: bump_version: runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: [ '3.8', '3.9', '3.10' ] steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" @@ -32,11 +35,12 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Set up Python ${{ env.PYTHON_VERSION }} + - name: Set up Python ${{ matrix.python-version }} id: setup-python uses: actions/setup-python@v4.5.0 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version: ${{ matrix.python-version }} + - run: echo "Installed python version $(python -V)" #---------------------------------------------- # install cmake to allow us to build the wheel From 4f71ca9eb328ce33a7d8fe345cac6602b3b9412d Mon Sep 17 00:00:00 2001 From: Kefei Mo Date: Tue, 7 Mar 2023 14:29:17 -0600 Subject: [PATCH 2/3] minor clean up --- .github/workflows/deploy-pre-release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pre-release.yml b/.github/workflows/deploy-pre-release.yml index 514f3f7..e3c9af9 100644 --- a/.github/workflows/deploy-pre-release.yml +++ b/.github/workflows/deploy-pre-release.yml @@ -13,14 +13,13 @@ defaults: env: LANG: en_US.utf-8 LC_ALL: en_US.utf-8 -# PYTHON_VERSION: "3.8" Use multiple python matrix jobs: bump_version: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [ '3.8', '3.9', '3.10' ] + python-version: [ 3.8, 3.9, 3.10 ] steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" From 5983784581b62891955d37e1182fd1e2b1ec5a1d Mon Sep 17 00:00:00 2001 From: Kefei Mo Date: Tue, 7 Mar 2023 14:50:34 -0600 Subject: [PATCH 3/3] get quote back, otherwise python3.10 got cast into python3.1 --- .github/workflows/deploy-pre-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pre-release.yml b/.github/workflows/deploy-pre-release.yml index e3c9af9..e9203da 100644 --- a/.github/workflows/deploy-pre-release.yml +++ b/.github/workflows/deploy-pre-release.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [ 3.8, 3.9, 3.10 ] + python-version: [ '3.8', '3.9', '3.10' ] steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"