Browse Source

Add build workflow

Jim Madge 3 years ago
parent
commit
553c92550c
1 changed files with 38 additions and 0 deletions
  1. 38 0
      .github/workflows/build.yaml

+ 38 - 0
.github/workflows/build.yaml

@@ -0,0 +1,38 @@
+---
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Install singularity
+        run: |
+          apt-get update
+          # Install singularity dependencies
+          apt-get install -y \
+          build-essential \
+          libssl-dev \
+          uuid-dev \
+          libgpgme11-dev \
+          squashfs-tools \
+          libseccomp-dev \
+          wget \
+          pkg-config \
+          git \
+          cryptsetup \
+          golang
+          # Get singularity release
+          export VERSION=3.8.0
+          wget https://github.com/hpcng/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz
+          tar -xzf singularity-${VERSION}.tar.gz
+          # Build/install singularity
+          cd singularity-${VERSION}
+          ./mconfig
+          make -C builddir
+          make -C builddir install
+      - name: Build pytorch GAN zoo
+        working-directory: workflows/pytorch_GAN_zoo/
+        run: build.sh