mlx repaired
This commit is contained in:
78
lib/mlx/.github/workflows/ci.yml
vendored
Normal file
78
lib/mlx/.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Codam Coding College, Amsterdam @ 2022-2023-2023 by W2Wizard.
|
||||
# See README in the root project for more information.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
name: Build
|
||||
|
||||
#=============================================================================#
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
#=============================================================================#
|
||||
|
||||
jobs:
|
||||
|
||||
# Tests
|
||||
#=============================================================================#
|
||||
|
||||
unit-test:
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
env:
|
||||
DISPLAY: ":99"
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y -qq xorg-dev xvfb
|
||||
|
||||
- name: Setup virtual screen
|
||||
run: Xvfb $DISPLAY -screen 0 1280x1024x24 &
|
||||
|
||||
- name: Build MLX42 & tests
|
||||
run: cmake -DBUILD_TESTS=YES -B ${{github.workspace}}/build && cmake --build ${{github.workspace}}/build --parallel
|
||||
|
||||
- name: Run tests
|
||||
run: ctest --output-on-failure --test-dir ${{github.workspace}}/build
|
||||
# Unix
|
||||
#=============================================================================#
|
||||
|
||||
build:
|
||||
timeout-minutes: 10
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Windows will just fetch glfw with cmake automatically.
|
||||
# This avoids doing extra work like installing a package manager.
|
||||
- name: Install Dependencies
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: |
|
||||
set -x
|
||||
if [ "$RUNNER_OS" == "Linux" ]; then
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y -qq xorg-dev
|
||||
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||||
brew update
|
||||
brew install glfw
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: cmake -B build && cmake --build build --parallel
|
||||
|
||||
#=============================================================================#
|
||||
38
lib/mlx/.github/workflows/wasm.yml
vendored
Normal file
38
lib/mlx/.github/workflows/wasm.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# Simple workflow for deploying static content to GitHub Pages
|
||||
name: Deploy static content to Pages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
# Single deploy job since we're just deploying
|
||||
jobs:
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
#TODO: add a build step to get the wasm file instead of commiting it.
|
||||
#Doesn't really matter atm since the git history is polluted anyway
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: './web'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
Reference in New Issue
Block a user