Try using a different docker image #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build glow | |
on: | |
pull_request: | |
push: | |
branches: | |
- nightly | |
- main | |
- release/* | |
workflow_dispatch: | |
jobs: | |
tests: | |
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | |
with: | |
docker-image: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang8-ubuntu16.04:283" | |
runner: linux.12xlarge | |
repository: pytorch/glow | |
timeout: 120 | |
script: | | |
# temporarily get the job green before we complete the migration. | |
echo '::group::Setup Environment Variables' | |
# Mark Build Directory Safe | |
git config --global --add safe.directory /__w/glow/glow | |
# Set CHANNEL | |
if [[(${GITHUB_EVENT_NAME} = 'pull_request' && (${GITHUB_BASE_REF} = 'release'*)) || (${GITHUB_REF} = 'refs/heads/release'*) ]]; then | |
export UPLOAD_CHANNEL=test | |
else | |
export UPLOAD_CHANNEL=nightly | |
fi | |
original_pwd=$(pwd) | |
sudo apt-get update; | |
mkdir ~/tempdownload; | |
cd ~/tempdownload; | |
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz; | |
tar zxvf openssh-8.1p1.tar.gz; | |
cd openssh-8.1p1 && ./configure && make && sudo make install; | |
cd $original_pwd | |
git submodule sync | |
git submodule update --recursive --init | |
set -e | |
# Build | |
.github/build.sh | |
# Test | |
.github/test.sh |