-
Notifications
You must be signed in to change notification settings - Fork 10
70 lines (68 loc) · 2.22 KB
/
nwchem-dev.gpu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: nwchem_docker_gpu
on:
repository_dispatch:
types: [backend_automation]
workflow_dispatch:
jobs:
changes:
if: |
!contains(github.event.head_commit.message, 'ci skip')
runs-on: ubuntu-latest
outputs:
# Expose matched filters as job 'folders' output variable
folders: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4
- name: choose_dockerfile_filter
uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
nwchem-dev.gpu: 'nwchem-dev.gpu/*'
- name: cleanup_nochange
if: steps.filter.outputs.changes == '[]'
run: echo "no change detected"
docker_schedule:
needs: [changes]
strategy:
fail-fast: true
matrix:
folder:
- nwchem-dev.gpu
archs: [linux/amd64]
runs-on: ubuntu-18.04
timeout-minutes: 420
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: ${{ github.actor == github.repository_owner }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build_schedule
uses: docker/build-push-action@v6
with:
push: ${{ github.actor == github.repository_owner }}
shm-size: 256m
context: ${{ matrix.folder }}
platforms: ${{ matrix.archs }}
tags: ghcr.io/${{ github.actor }}/${{ matrix.folder }}:latest
- name: load and test image
if: ( github.actor == github.repository_owner )
run: |
docker pull ghcr.io/${{ github.actor }}/${{ matrix.folder }}
cd /tmp
umask u=rwx,g=rwx,o=rwx
umask -S
svn export https://github.com/nwchemgit/nwchem/trunk/QA >& svnout.log
cd QA
docker run --shm-size 256m --rm \
-e NWCHEM_EXECUTABLE=/opt/nwchem/bin/nwchem --entrypoint='/opt/nwchem/QA/runtests.mpi.unix' \
-v `pwd`:/opt/nwchem/QA ghcr.io/${{ github.actor }}/${{ matrix.folder }} \
procs 2 tce_n2