Skip to content

Commit

Permalink
ci: add archs building with QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Feb 2, 2024
1 parent 7e441ec commit ebcedb1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
with:
CIBW_SKIP: "pp* cp36-* cp37-*"
CIBW_BUILD: "cp*-macosx* cp*-manylinux* cp*-win*"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "x86_64 i686"
CIBW_ARCHS_WINDOWS: "x86_64"
VERSION: ${{ github.ref_name }}
secrets: inherit

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ on:
CIBW_BUILD:
required: true
type: string
CIBW_ARCHS_MACOS:
required: false
type: string
CIBW_ARCHS_LINUX:
required: false
type: string
CIBW_ARCHS_WINDOWS:
required: false
type: string
VERSION:
required: false
type: string
Expand All @@ -23,6 +32,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set correct version
if: ${{ inputs.VERSION != '' }}
run: echo -n "${{ inputs.VERSION }}" > VERSION
Expand All @@ -33,6 +46,9 @@ jobs:
env:
CIBW_SKIP: ${{ inputs.CIBW_SKIP }}
CIBW_BUILD: ${{ inputs.CIBW_BUILD }}
CIBW_ARCHS_MACOS: ${{ inputs.CIBW_ARCHS_MACOS }}
CIBW_ARCHS_LINUX: ${{ inputs.CIBW_ARCHS_LINUX }}
CIBW_ARCHS_WINDOWS: ${{ inputs.CIBW_ARCHS_WINDOWS }}
- name: List wheels
run: ls -lah ./wheelhouse
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
with:
CIBW_SKIP: "pp* cp36-* cp37-*"
CIBW_BUILD: "cp*-macosx* cp*-manylinux* cp*-win*"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
CIBW_ARCHS_WINDOWS: "x86_64"
secrets: inherit

full-tests-python:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![PyPI version](https://badge.fury.io/py/codebleu.svg)](https://badge.fury.io/py/codebleu)


This repository contains an unofficial `CodeBLEU` implementation that supports `Linux`, `MacOS` and `Windows`. It is available through `PyPI` and the `evaluate` library.
This repository contains an unofficial `CodeBLEU` implementation that supports `Linux`, `MacOS` (incl. M-series) and `Windows`. It is available through `PyPI` and the `evaluate` library.

Available for: `Python`, `C`, `C#`, `C++`, `Java`, `JavaScript`, `PHP`, `Go`, `Ruby`.

Expand Down

0 comments on commit ebcedb1

Please sign in to comment.