Skip to content

Commit

Permalink
Tutorial bugfixes and CI integration (google-research#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
apaszke authored Feb 1, 2021
2 parents 93ddd40 + 438038b commit 540f1a1
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 64 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
os: [ubuntu-18.04, macos-latest]
include:
- os: macos-latest
install_deps: brew install llvm@9 pkg-config
install_deps: brew install llvm@9 pkg-config wget gzip
path_extension: $(brew --prefix llvm@9)/bin
- os: ubuntu-18.04
install_deps: sudo apt-get install llvm-9-tools llvm-9-dev pkg-config
install_deps: sudo apt-get install llvm-9-tools llvm-9-dev pkg-config wget gzip
path_extension: /usr/lib/llvm-9/bin

runs-on: ${{ matrix.os }}
Expand All @@ -37,12 +37,22 @@ jobs:
${{ matrix.install_deps }}
echo "${{ matrix.path_extension }}" >> $GITHUB_PATH
- name: Get example files
run: |
wget http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-images-idx3-ubyte.gz
wget http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-labels-idx1-ubyte.gz
gunzip t10k-images-idx3-ubyte.gz t10k-labels-idx1-ubyte.gz
mv t10k-images-idx3-ubyte t10k-labels-idx1-ubyte $GITHUB_WORKSPACE/examples/
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.stack
$GITHUB_WORKSPACE/.stack-work
$GITHUB_WORKSPACE/examples/t10k-images-idx3-ubyte
$GITHUB_WORKSPACE/examples/t10k-labels-idx1-ubyte
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal', 'stack*.yaml') }}
restore-keys: ${{ runner.os }}-

Expand Down
Loading

0 comments on commit 540f1a1

Please sign in to comment.