Skip to content

Commit

Permalink
CI: add Python 3.12 and remove nix build as unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Nov 8, 2023
1 parent 5319eb8 commit 75d3227
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
mamba-build:
strategy:
matrix:
version: [ "3.8", "3.9", "3.10", "3.11" ]
version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,8 +27,7 @@ jobs:
python=${{ matrix.version }}
cache-environment: true

# Linux (TODO: MacOS)
- name: Run Python
- name: Run the build script
shell: bash -l {0}
run: |
export CC=clang
Expand All @@ -41,20 +40,4 @@ jobs:
with:
name: pyoperon-wheel
path: dist/*.whl
retention-days: 90

nix-build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16

- name: Build
working-directory: ${{github.workspace}}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: nix build
retention-days: 90
7 changes: 3 additions & 4 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
mamba-build:
strategy:
matrix:
version: [ "3.8", "3.9", "3.10", "3.11" ]
version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,8 +27,7 @@ jobs:
python=${{ matrix.version }}
cache-environment: true

# Linux (TODO: MacOS)
- name: Run Python
- name: Run the build script
shell: bash -l {0}
run: |
export CC=clang
Expand All @@ -41,4 +40,4 @@ jobs:
with:
name: pyoperon-wheel
path: dist/*.whl
retention-days: 90
retention-days: 90

0 comments on commit 75d3227

Please sign in to comment.