build.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. name: Build
  3. on: [push, pull_request]
  4. jobs:
  5. build:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v2
  10. with:
  11. submodules: true
  12. - name: Install singularity
  13. run: |
  14. sudo apt-get update
  15. # Install singularity dependencies
  16. sudo apt-get install -y \
  17. build-essential \
  18. libssl-dev \
  19. uuid-dev \
  20. libgpgme11-dev \
  21. squashfs-tools \
  22. libseccomp-dev \
  23. wget \
  24. pkg-config \
  25. git \
  26. cryptsetup \
  27. golang
  28. # Get singularity release
  29. export VERSION=3.8.0
  30. wget https://github.com/hpcng/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz
  31. tar -xzf singularity-${VERSION}.tar.gz
  32. # Build/install singularity
  33. cd singularity-${VERSION}
  34. ./mconfig
  35. make -C builddir
  36. sudo make -C builddir install
  37. - name: Build pytorch GAN zoo
  38. working-directory: workflows/pytorch_GAN_zoo/
  39. run: |
  40. id
  41. ./build.sh