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

Replace haskell.nix with stacklock2nix #675

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/disabled-workflows/linting-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
- uses: cachix/install-nix-action@v22
with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
Expand Down
4 changes: 2 additions & 2 deletions .github/disabled-workflows/nix-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# runs-on: macOS-latest
# steps:
# - uses: actions/checkout@v2
# - uses: cachix/install-nix-action@v10
# - uses: cachix/install-nix-action@v22
# - run: nix-env -iA cachix -f https://cachix.org/api/v1/install
# - run: cachix use hasktorch
# - run: cachix use iohk
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix-haddock-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
sudo apt autoclean -y || true
docker rmi $(docker image ls -aq)
df -h
- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
- run: cachix use hasktorch
- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nix-linux-cu10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# sudo apt autoclean -y || true
# docker rmi $(docker image ls -aq)
# df -h
# - uses: cachix/install-nix-action@v10
# - uses: cachix/install-nix-action@v22
# - run: nix-env -iA cachix -f https://cachix.org/api/v1/install
# - run: cachix use hasktorch
# - run: cachix use iohk
Expand All @@ -44,7 +44,7 @@ jobs:
df -h
cat /proc/cpuinfo
cat /proc/meminfo
- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: hasktorch
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nix-linux-cu11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# sudo apt autoclean -y || true
# docker rmi $(docker image ls -aq)
# df -h
# - uses: cachix/install-nix-action@v10
# - uses: cachix/install-nix-action@v22
# - run: nix-env -iA cachix -f https://cachix.org/api/v1/install
# - run: cachix use hasktorch
# - run: cachix use iohk
Expand All @@ -44,7 +44,7 @@ jobs:
df -h
cat /proc/cpuinfo
cat /proc/meminfo
- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: hasktorch
Expand Down
55 changes: 6 additions & 49 deletions .github/workflows/nix-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# sudo apt autoclean -y || true
# docker rmi $(docker image ls -aq)
# df -h
# - uses: cachix/install-nix-action@v10
# - uses: cachix/install-nix-action@v22
# - run: nix-env -iA cachix -f https://cachix.org/api/v1/install
# - run: cachix use hasktorch
# - run: cachix use iohk
Expand All @@ -41,7 +41,7 @@ jobs:
df -h
cat /proc/cpuinfo
cat /proc/meminfo
- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: hasktorch
Expand All @@ -51,50 +51,7 @@ jobs:
free
export NIX_BUILD_CORES=1

nix build '.#codegen:test:doctests' $NIX_OPTIONS
nix build '.#checks.x86_64-linux.codegen:test:spec' $NIX_OPTIONS
nix build '.#hasktorch-cpu:test:doctests' $NIX_OPTIONS
nix build '.#checks.x86_64-linux.hasktorch-cpu:test:spec' $NIX_OPTIONS
nix build '.#hasktorch-gradually-typed-cpu:test:doctests' $NIX_OPTIONS
nix build '.#checks.x86_64-linux.hasktorch-gradually-typed-cpu:test:spec' $NIX_OPTIONS
nix build '.#libtorch-ffi-cpu:test:spec' $NIX_OPTIONS
nix build '.#checks.x86_64-linux.libtorch-ffi-cpu:test:spec' $NIX_OPTIONS

- run: |
ps -aux
free
export NIX_BUILD_CORES=1

nix build '.#bounding-box-cpu:exe:bounding-box' $NIX_OPTIONS
nix build '.#codegen:exe:codegen-exe' $NIX_OPTIONS
nix build '.#dataloader-cifar10-cpu:exe:dataloader-cifar10' $NIX_OPTIONS
nix build '.#examples-cpu:exe:alexNet' $NIX_OPTIONS
nix build '.#examples-cpu:exe:autograd' $NIX_OPTIONS
nix build '.#examples-cpu:exe:distill' $NIX_OPTIONS
nix build '.#examples-cpu:exe:gaussian-process' $NIX_OPTIONS
nix build '.#examples-cpu:exe:gd-field' $NIX_OPTIONS
nix build '.#examples-cpu:exe:image-processing' $NIX_OPTIONS
nix build '.#examples-cpu:exe:iris-classification' $NIX_OPTIONS
nix build '.#examples-cpu:exe:load-torchscript' $NIX_OPTIONS
nix build '.#examples-cpu:exe:matrix-factorization' $NIX_OPTIONS
nix build '.#examples-cpu:exe:minimal-text-example' $NIX_OPTIONS
nix build '.#examples-cpu:exe:mnist-mixed-precision' $NIX_OPTIONS
nix build '.#examples-cpu:exe:mnist-mlp' $NIX_OPTIONS
nix build '.#examples-cpu:exe:optimizers' $NIX_OPTIONS
nix build '.#examples-cpu:exe:optimizers-cpp' $NIX_OPTIONS
nix build '.#examples-cpu:exe:optimizers-cpp-typed' $NIX_OPTIONS
nix build '.#examples-cpu:exe:regression' $NIX_OPTIONS
nix build '.#examples-cpu:exe:regularization' $NIX_OPTIONS
nix build '.#examples-cpu:exe:rnn' $NIX_OPTIONS
nix build '.#examples-cpu:exe:serialization' $NIX_OPTIONS
nix build '.#examples-cpu:exe:static-mnist-cnn' $NIX_OPTIONS
nix build '.#examples-cpu:exe:static-mnist-mlp' $NIX_OPTIONS
nix build '.#examples-cpu:exe:static-xor-mlp' $NIX_OPTIONS
nix build '.#examples-cpu:exe:typed-transformer' $NIX_OPTIONS
nix build '.#examples-cpu:exe:vae' $NIX_OPTIONS
nix build '.#examples-cpu:exe:xor-mlp' $NIX_OPTIONS
nix build '.#hasktorch-gradually-typed-cpu:exe:linear-regression' $NIX_OPTIONS
nix build '.#hasktorch-gradually-typed-cpu:exe:neural-interpreter' $NIX_OPTIONS
nix build '.#hasktorch-gradually-typed-cpu:exe:two-layer-network' $NIX_OPTIONS
nix build '.#untyped-nlp-cpu:exe:untyped-nlp' $NIX_OPTIONS
nix build .#lib.x86_64-linux.cpu.pkgs.haskell-language-server $NIX_OPTIONS
nix build .#codegen $NIX_OPTIONS
nix build .#hasktorch $NIX_OPTIONS
nix build .#examples $NIX_OPTIONS
nix build .#hasktorch-gradually-typed $NIX_OPTIONS
2 changes: 1 addition & 1 deletion .github/workflows/stack-nix-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
sudo apt update -qq
sudo apt -y --allow-downgrades --allow-remove-essential --allow-change-held-packages install cmake curl wget unzip git libtinfo-dev python3 python3-yaml
(wget -qO- https://get.haskellstack.org/ | sh) || true
- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: hasktorch
Expand Down