2020-09-10 22:38:29 +00:00
|
|
|
name: CI build Docker
|
|
|
|
# https://www.docker.com/blog/first-docker-github-action-is-here
|
|
|
|
# https://github.com/docker/build-push-action
|
|
|
|
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
2020-09-15 09:55:03 +00:00
|
|
|
on: # Trigger the workflow on push or pull request, but only for the master branch
|
2020-09-10 22:38:29 +00:00
|
|
|
push:
|
2020-09-15 09:55:03 +00:00
|
|
|
branches: [master]
|
2020-09-10 22:38:29 +00:00
|
|
|
pull_request:
|
2020-09-15 09:55:03 +00:00
|
|
|
branches: [master]
|
2020-09-10 22:38:29 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-Conda:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-10-02 09:26:21 +00:00
|
|
|
python_version: [3.6]
|
|
|
|
pytorch_version: [1.3, 1.7]
|
2020-09-10 22:38:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build Docker
|
|
|
|
# publish master
|
|
|
|
uses: docker/build-push-action@v1.1.0
|
|
|
|
with:
|
|
|
|
dockerfile: dockers/conda/Dockerfile
|
|
|
|
build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
|
|
|
push: false
|
2020-09-22 23:41:35 +00:00
|
|
|
timeout-minutes: 50
|
2020-09-10 22:38:29 +00:00
|
|
|
|
|
|
|
build-XLA:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
python_version: [3.7]
|
2020-10-06 21:29:43 +00:00
|
|
|
xla_version: [1.6] # todo: , "nightly"
|
2020-09-10 22:38:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build Docker
|
|
|
|
# publish master
|
|
|
|
uses: docker/build-push-action@v1.1.0
|
|
|
|
with:
|
|
|
|
dockerfile: dockers/base-xla/Dockerfile
|
|
|
|
build_args: PYTHON_VERSION=${{ matrix.python_version }},XLA_VERSION=${{ matrix.xla_version }}
|
|
|
|
push: false
|
2020-09-22 23:41:35 +00:00
|
|
|
timeout-minutes: 50
|
2020-09-10 22:38:29 +00:00
|
|
|
|
2020-09-17 18:30:39 +00:00
|
|
|
build-cuda:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python_version: 3.7
|
2020-10-06 21:29:43 +00:00
|
|
|
pytorch_version: 1.8
|
2020-09-17 18:30:39 +00:00
|
|
|
pytorch_channel: pytorch-nightly
|
2020-09-22 23:41:35 +00:00
|
|
|
- python_version: 3.8
|
2020-10-02 09:26:21 +00:00
|
|
|
pytorch_version: 1.6
|
|
|
|
pytorch_channel: pytorch
|
|
|
|
- python_version: 3.6
|
2020-09-22 23:41:35 +00:00
|
|
|
pytorch_version: 1.5
|
|
|
|
pytorch_channel: pytorch
|
2020-09-17 18:30:39 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build Docker
|
|
|
|
# publish master
|
|
|
|
uses: docker/build-push-action@v1.1.0
|
|
|
|
with:
|
|
|
|
dockerfile: dockers/base-cuda/Dockerfile
|
|
|
|
build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }},PYTORCH_CHANNEL=${{ matrix.pytorch_channel }}
|
|
|
|
push: false
|
2020-09-22 23:41:35 +00:00
|
|
|
timeout-minutes: 50
|