Skip to content

Commit

Permalink
faster
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 31, 2023
1 parent 987861b commit fe1b973
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 88 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/lint.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,10 @@ jobs:
fail-fast: false
matrix:
python: [
"pypy3.9-7.3.12",
"pypy3.10-7.3.12",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
]
mb-ml-libc: [ "manylinux" ]
mb-ml-ver: [ 2014, "_2_28" ]
include:
- python: "3.8"
mb-ml-libc: "musllinux"
mb-ml-ver: "_1_1"
- python: "3.9"
mb-ml-libc: "musllinux"
mb-ml-ver: "_1_1"
- python: "3.10"
mb-ml-libc: "musllinux"
mb-ml-ver: "_1_1"
- python: "3.11"
mb-ml-libc: "musllinux"
mb-ml-ver: "_1_1"
- python: "3.12"
mb-ml-libc: "musllinux"
mb-ml-ver: "_1_1"
env:
BUILD_COMMIT: ${{ inputs.build-commit }}
MB_PYTHON_VERSION: ${{ matrix.python }}
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,10 @@ name: Wheels

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
macos:
uses: ./.github/workflows/wheels-macos.yml
with:
build-commit: "HEAD"
artifacts-name: "wheels"

linux:
uses: ./.github/workflows/wheels-linux.yml
with:
build-commit: "HEAD"
artifacts-name: "wheels"

macos-latest:
if: "!startsWith(github.ref, 'refs/tags/')"
uses: ./.github/workflows/wheels-macos.yml
with:
build-commit: "main"
artifacts-name: "wheels-latest"

linux-latest:
if: "!startsWith(github.ref, 'refs/tags/')"
uses: ./.github/workflows/wheels-linux.yml
with:
build-commit: "main"
artifacts-name: "wheels-latest"

release:
name: Create Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [macos, linux]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Upload Release
uses: fnkr/github-action-ghr@v1.3
env:
GHR_PATH: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

success:
needs: [macos, linux, macos-latest, linux-latest]
runs-on: ubuntu-latest
name: Wheels Successful
steps:
- name: Success
run: echo Wheels Successful
4 changes: 4 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ function pre_build {
fi
build_simple xcb-proto 1.16.0 https://xcb.freedesktop.org/dist
if [ -n "$IS_MACOS" ]; then
echo "torch1"
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
echo "torch2"
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
echo "torch3"
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
echo "torch4"
cp venv/share/pkgconfig/xcb-proto.pc venv/lib/pkgconfig/xcb-proto.pc
else
sed s/\${pc_sysrootdir\}// /usr/local/share/pkgconfig/xcb-proto.pc > /usr/local/lib/pkgconfig/xcb-proto.pc
Expand Down

0 comments on commit fe1b973

Please sign in to comment.