Skip to content

Commit

Permalink
Ensure we have run or uses on each step
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Keefe authored and Michael O'Keefe committed Dec 15, 2023
1 parent bba7de2 commit e9fe1db
Showing 1 changed file with 2 additions and 43 deletions.
45 changes: 2 additions & 43 deletions .github/workflows/cli-app-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wheels
name: cli-app-build

on:
push:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:

- name: set up rust for ubuntu
if: matrix.os == 'ubuntu'
bash: >
run: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show
Expand All @@ -53,47 +53,6 @@ jobs:

- run: cd rust/ && cargo test

- name: build ${{ matrix.platform || matrix.os }} binaries
run: cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp3${{ matrix.python-version }}-*"
CIBW_SKIP: "*-win32 *-musllinux* *i686 *ppc64le *s390x *aarch64"
CIBW_PLATFORM: ${{ matrix.platform || matrix.os }}
# TODO: why doesn't pytest work with cibuildwheel?
# CIBW_TEST_COMMAND: "pytest -v {project}/python/fastsim/tests"
CIBW_TEST_COMMAND: "python -m unittest discover {project}/python/fastsim/tests"
CIBW_ARCHS_MACOS: 'universal2'
# see https://cibuildwheel.readthedocs.io/en/stable/faq/#universal2
CIBW_TEST_SKIP: '*_universal2:arm64'
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_I686_IMAGE: "manylinux2014"
CIBW_BEFORE_BUILD: >
pip install -U setuptools-rust &&
rustup default stable &&
rustup show
CIBW_BEFORE_BUILD_LINUX: >
pip install -U setuptools-rust &&
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show
# - name: build windows 32bit binaries
# if: matrix.os == 'windows'
# run: cibuildwheel --output-dir dist
# env:
# CIBW_BUILD: 'cp3${{ matrix.python-version }}-win32'
# CIBW_PLATFORM: windows
# CIBW_TEST_REQUIRES: 'pytest'
# CIBW_TEST_COMMAND: 'pytest {project}/tests -s'
# CIBW_ENVIRONMENT: 'PATH="$UserProfile\.cargo\bin;$PATH"'
# CIBW_BEFORE_BUILD: >
# pip install -U setuptools-rust &&
# rustup toolchain install nightly-i686-pc-windows-msvc &&
# rustup default nightly-i686-pc-windows-msvc &&
# rustup override set nightly-i686-pc-windows-msvc &&
# rustup show

- name: list dist files
run: ${{ matrix.ls || 'ls -lh' }} dist/

Expand Down

0 comments on commit e9fe1db

Please sign in to comment.