Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial bugfixes and CI integration #472

Merged
merged 13 commits into from
Feb 1, 2021
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://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
wget http://yann.lecun.com/exdb/mnist/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