Skip to content

Commit

Permalink
Merge branch 'main' into review-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fangohr authored Mar 20, 2024
2 parents e24fc90 + 1c532f5 commit cf7416b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/diff-with-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: diff-with-upstream

on:
schedule:
- cron: "0 0 * * 0" # Run once a week on Sunday at midnight
workflow_dispatch:

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Fetch and compare with upstream spack Octopus package file
run: make diff
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ run-spack:
diff:
@echo "Compare (diff) spack/package.py with current package.py from spack develop"
wget --output-document=spack/package-upstream.py https://raw.githubusercontent.com/spack/spack/develop/var/spack/repos/builtin/packages/octopus/package.py
diff spack/package-upstream.py spack/package.py || true
diff spack/package-upstream.py spack/package.py
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. sectnum::

.. contents::
.. contents::

Octopus-in-spack
================
Expand All @@ -25,6 +25,8 @@ Compile Octopus on Linux with Spack.

|spack-develop-octopus-develop| Spack develop version, `develop version of Octopus <https://gitlab.com/octopus-code/octopus>`__

|diff-with-upstream| A check to see if our `octopus/package.py` file is in sync with the upstream [spack repository](https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/octopus/package.py).


Octopus and Spack - Quick start
===============================
Expand Down Expand Up @@ -83,3 +85,7 @@ Other ways to compile / use Octopus

.. |spack-develop-octopus-develop| image:: https://github.com/fangohr/octopus-in-spack/actions/workflows/spack-develop-octopus-develop.yml/badge.svg
:target: https://github.com/fangohr/octopus-in-spack/actions/workflows/spack-develop-octopus-develop.yml

.. |diff-with-upstream| image:: https://github.com/fangohr/octopus-in-spack/actions/workflows/diff-with-upstream.yml/badge.svg
:target: https://github.com/fangohr/octopus-in-spack/actions/workflows/sdiff-with-upstream.yml

0 comments on commit cf7416b

Please sign in to comment.