27 lines
1.2 KiB
YAML
27 lines
1.2 KiB
YAML
|
name: Build x86 LLVM-Nightly Prereq Image
|
||
|
|
||
|
on:
|
||
|
# Allow manually triggering rebuild.
|
||
|
workflow_dispatch:
|
||
|
# Run every week (on Sunday).
|
||
|
schedule:
|
||
|
- cron: '0 0 * * SUN'
|
||
|
|
||
|
jobs:
|
||
|
build-x86-llvm-nightly-prereq-img:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: build a docker container for the latest llvm/mlir.
|
||
|
env:
|
||
|
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||
|
run: |
|
||
|
# Swaps utils/clone-mlir for a different shell script that clones the latest version of llvm/mlir.
|
||
|
mv $GITHUB_WORKSPACE/utils/clone-mlir.sh $GITHUB_WORKSPACE/utils/clone-mlir-backup.sh
|
||
|
cp $GITHUB_WORKSPACE/utils/clone-mlir-master.sh $GITHUB_WORKSPACE/utils/clone-mlir.sh
|
||
|
# Build docker image for x86 arch, with the latest llvm/mlir and subsequently publish it.
|
||
|
docker build --tag onnxmlirczar/onnx-mlir-llvmimage:x86-nightly -f $GITHUB_WORKSPACE/.github/workflows/prereq.Dockerfile $GITHUB_WORKSPACE/utils
|
||
|
docker login -u onnxmlirczar -p "$DOCKER_HUB_TOKEN"
|
||
|
docker push onnxmlirczar/onnx-mlir-llvmimage:x86-nightly
|