Skip to content

Commit

Permalink
Update build 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Jun 11, 2024
1 parent dd67c7c commit 465b177
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 188 deletions.
138 changes: 70 additions & 68 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,60 +19,30 @@ permissions:
contents: read

jobs:
# linux:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# - runner: ubuntu-latest
# target: x86_64
# - runner: ubuntu-latest
# target: x86
## - runner: ubuntu-latest
## target: aarch64
## - runner: ubuntu-latest
## target: armv7
# - runner: ubuntu-latest
# target: s390x
# - runner: ubuntu-latest
# target: ppc64le
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Install Libs
# run: pip install uniffi-bindgen
# - name: Change Directory
# run: cd bindings/ceylon
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter -m bindings/ceylon/Cargo.toml
# sccache: 'true'
# manylinux: auto
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-linux-${{ matrix.platform.target }}
# path: bindings/ceylon/dist

windows:
linux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: windows-latest
target: x64
- runner: windows-latest
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
# - runner: ubuntu-latest
# target: aarch64
# - runner: ubuntu-latest
# target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install OpenSSL
run: apt-get install pkg-config libssl-dev
with:
python-version: '3.10'
architecture: ${{ matrix.platform.target }}
- name: Install Libs
run: pip install uniffi-bindgen
- name: Change Directory
Expand All @@ -83,26 +53,28 @@ jobs:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter -m bindings/ceylon/Cargo.toml
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-windows-${{ matrix.platform.target }}
name: wheels-linux-${{ matrix.platform.target }}
path: bindings/ceylon/dist

macos:
windows:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: macos-latest
target: x86_64
- runner: macos-14
target: aarch64
- runner: windows-latest
target: x64
- runner: windows-latest
target: x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: ${{ matrix.platform.target }}
- name: Install Libs
run: pip install uniffi-bindgen
- name: Change Directory
Expand All @@ -116,31 +88,61 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
name: wheels-windows-${{ matrix.platform.target }}
path: bindings/ceylon/dist

sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Change Directory
run: cd bindings/ceylon
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist -m bindings/ceylon/Cargo.toml
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: bindings/ceylon/dist
# macos:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# - runner: macos-latest
# target: x86_64
# - runner: macos-14
# target: aarch64
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Install Libs
# run: pip install uniffi-bindgen
# - name: Change Directory
# run: cd bindings/ceylon
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter -m bindings/ceylon/Cargo.toml
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-macos-${{ matrix.platform.target }}
# path: bindings/ceylon/dist
#
# sdist:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Change Directory
# run: cd bindings/ceylon
# - name: Build sdist
# uses: PyO3/maturin-action@v1
# with:
# command: sdist
# args: --out dist -m bindings/ceylon/Cargo.toml
# - name: Upload sdist
# uses: actions/upload-artifact@v4
# with:
# name: wheels-sdist
# path: bindings/ceylon/dist

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [windows, macos, sdist]
needs: [ windows, sdist ]
steps:
- uses: actions/download-artifact@v4
- name: Change Directory
Expand Down
120 changes: 0 additions & 120 deletions bindings/ceylon/.github/workflows/CI.yml

This file was deleted.

0 comments on commit 465b177

Please sign in to comment.