Skip to content

Commit

Permalink
Merge pull request #12 from shazamio/test-ci-build
Browse files Browse the repository at this point in the history
Test ci build for amd ubuntu, macos intel, this pr removed in next time and roll backed.
  • Loading branch information
dotX12 authored Aug 2, 2024
2 parents 53c032d + 00b2091 commit 53ec194
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: shazamio-core CI

on:
workflow_dispatch:
push:
branches:
- 'master'
Expand All @@ -13,29 +14,29 @@ permissions:
id-token: write

jobs:
windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
target: [ x64, x86 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist/dist --interpreter python${{ matrix.python-version }}
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
# target: [ x64, x86 ]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist/dist --interpreter python${{ matrix.python-version }}
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist

macos:
runs-on: macos-latest
Expand All @@ -45,9 +46,9 @@ jobs:
- name: x86_64
target: x86_64-apple-darwin
arch: x86_64
- name: aarch64
target: aarch64-apple-darwin
arch: arm64
# - name: aarch64
# target: aarch64-apple-darwin
# arch: arm64
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v3
Expand All @@ -71,11 +72,11 @@ jobs:
strategy:
matrix:
include:
# - docker_file: docker/Dockerfile.manylinux_2_28_ARM64
# name: manylinux-arm
# arch: linux/arm64
- docker_file: docker/Dockerfile.manylinux_2_28_X64
name: manylinux-x86
- docker_file: docker/Dockerfile.manylinux_2_28_ARM64
name: manylinux-arm
arch: linux/arm64
# - docker_file: docker/Dockerfile.manylinux_2_28_X64
# name: manylinux-x86

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -126,7 +127,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'"
needs: [ sdist, macos, windows, linux ]
needs: [ sdist, macos, linux ]
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -146,4 +147,4 @@ jobs:
files: |
dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53ec194

Please sign in to comment.