From 6b3eab1db340f698fd627f44a18a9c6f9e9b0e6e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 21 Sep 2024 15:09:46 -0700 Subject: [PATCH] Add building for Python 3.12, x64 in CI --- .github/workflows/linux-ci.yml | 2 +- .github/workflows/macos-ci.yml | 2 +- .github/workflows/windows-ci.yml | 13 +++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index f6a52598..1c1df460 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -5,7 +5,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Build string_theory run: | mkdir -p build_deps && cd build_deps diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml index fb8d8f4c..10650cfe 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/macos-ci.yml @@ -8,7 +8,7 @@ jobs: matrix: compiler: [gcc, clang] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Install dependencies run: | brew install libjpeg-turbo libpng diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 665ed535..3eb6913c 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -7,6 +7,7 @@ jobs: strategy: matrix: platform: + - { image: windows-2022, generator: Visual Studio 17 2022, toolset: v143, cmake-arch: x64, arch: x64, python: "3.12", unity: ON, str: windows-x64-v143 } - { image: windows-2022, generator: Visual Studio 17 2022, toolset: v143, cmake-arch: x64, arch: x64, python: "3.10", unity: ON, str: windows-x64-v143 } - { image: windows-2019, generator: Visual Studio 16 2019, toolset: v142, cmake-arch: Win32, arch: x86, python: 3.9, unity: ON, str: windows-x86-v142 } - { image: windows-2019, generator: Visual Studio 16 2019, toolset: v142, cmake-arch: x64, arch: x64, python: 3.8, unity: OFF, str: windows-x64-v142 } @@ -20,9 +21,9 @@ jobs: steps: - name: Checkout HSPlasma - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Checkout vcpkg - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: microsoft/vcpkg path: vcpkg @@ -44,10 +45,10 @@ jobs: id: vcpkg-rev run: | Set-Location vcpkg - Write-Host "::set-output name=ref::$(git rev-parse HEAD)" + "ref=$(git rev-parse HEAD)" >> $env:GITHUB_OUTPUT - name: Restore Dependency Libraries - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: build/vcpkg_installed key: vcpkg-${{ matrix.platform.str }} ${{ steps.vcpkg-rev.outputs.ref }} ${{ hashFiles('vcpkg.json') }} @@ -56,7 +57,7 @@ jobs: vcpkg-${{ matrix.platform.str }} - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.platform.python }} architecture: ${{ matrix.platform.arch }} @@ -88,7 +89,7 @@ jobs: python -c "import PyHSPlasma; print(dir(PyHSPlasma))" - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: libhsplasma-${{ matrix.platform.str }}-py${{ matrix.platform.python }} path: build/install