This commit is contained in:
AbdBarho 2022-10-14 15:36:18 +02:00
parent 463f332d14
commit 03510556ee
3 changed files with 26 additions and 35 deletions

View file

@ -1,19 +1,13 @@
name: Build Images name: Build Xformers
on: [push] on: [push]
jobs: jobs:
build: build:
strategy: runs-on: pytorch/manylinux-cuda113
matrix:
profile:
- auto
- hlky
- lstein
- download
runs-on: ubuntu-latest
name: ${{ matrix.profile }}
steps: steps:
- uses: actions/checkout@v3 - run: |
# better caching? git clone https://github.com/facebookresearch/xformers /x
- run: docker compose --profile ${{ matrix.profile }} build --progress plain cd /x
export CU_VERSION=cu113 PYTHON_VERSION=3.10 PYTORCH_VERSION=1.12
./packaging/build_wheel.sh

19
.github/workflows/docker.yml1 vendored Normal file
View file

@ -0,0 +1,19 @@
name: Build Images
on: [push]
jobs:
build:
strategy:
matrix:
profile:
- auto
- hlky
- lstein
- download
runs-on: ubuntu-latest
name: ${{ matrix.profile }}
steps:
- uses: actions/checkout@v3
# better caching?
- run: docker compose --profile ${{ matrix.profile }} build --progress plain

View file

@ -1,22 +0,0 @@
name: Check executable
on: [push]
jobs:
check:
runs-on: ubuntu-latest
name: Check all sh
steps:
- run: git config --global core.fileMode true
- uses: actions/checkout@v3
- shell: bash
run: |
shopt -s globstar;
FAIL=0
for file in **/*.sh; do
if [ -f "${file}" ] && [ -r "${file}" ] && [ ! -x "${file}" ]; then
echo "$file" is not executable;
FAIL=1
fi
done
exit ${FAIL}