Skip to content

Commit

Permalink
Merge pull request #107 from fangohr/add-diff-ci
Browse files Browse the repository at this point in the history
Add CI to diff with upstream package
  • Loading branch information
fangohr authored Mar 20, 2024
2 parents 22f8618 + 1f8dd8e commit 1c532f5
Show file tree
Hide file tree
Showing 3 changed files with 23 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
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Octopus in spack

.. sectnum::

.. contents::
.. contents::

Octopus-in-spack
================
Expand All @@ -31,6 +31,8 @@ moment (if you follow `Compilation of Octopus using Spack`_):

|spack-develop-octopus-develop| Spack develop version, develop version of 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 @@ -94,6 +96,8 @@ https://github.com/fangohr/octopus-in-docker
.. |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

.. comment: Outdated badges to follow
Expand Down

0 comments on commit 1c532f5

Please sign in to comment.