build.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. name: Build
  3. on: [push]
  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: Setup Go
  13. uses: actions/setup-go@v2
  14. with:
  15. go-version: '^1.17.7'
  16. - name: Install Apptainer dependencies
  17. run: |
  18. # Apptainer installation instructions
  19. # https://github.com/apptainer/apptainer/blob/main/INSTALL.md
  20. #
  21. # Install Apptainer dependencies
  22. sudo apt-get update
  23. sudo apt-get install -y \
  24. build-essential \
  25. libssl-dev \
  26. uuid-dev \
  27. libgpgme11-dev \
  28. squashfs-tools \
  29. libseccomp-dev \
  30. wget \
  31. pkg-config \
  32. cryptsetup
  33. sudo apt-get clean
  34. - name: Install Apptainer
  35. run: |
  36. #
  37. # Get Apptainer release
  38. export VERSION=1.0.0
  39. wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-${VERSION}.tar.gz
  40. tar -xzf apptainer-${VERSION}.tar.gz
  41. #
  42. # Build/install Apptainer
  43. cd apptainer-${VERSION}
  44. ./mconfig
  45. make -C builddir
  46. sudo make -C builddir install
  47. cd ../
  48. rm -r apptainer-${VERSION} apptainer-${VERSION}.tar.gz
  49. - name: Build pytorch GAN zoo
  50. working-directory: workflows/pytorch_GAN_zoo/
  51. run: |
  52. id
  53. sudo ./build.sh