- name: Mdr
if: steps.mdr-bin.outputs.cache-hit == 'true'
run: |
- if [ $(git rev-parse HEAD) = $(git ls-remote https://github.com/fennecdjay/mdr.git HEAD | cut -f1) ]
+ cd mdr
+ if [ $(git rev-parse HEAD) != $(git ls-remote https://github.com/fennecdjay/mdr.git HEAD | cut -f1) ]
then
- cd mdr
- cabal install
- exit 0
+ git pull
+ cabal update
+ cabal install --only-dependencies
+ cabal configure
+ cabal build
fi
- cd mdr
- git pull
- cabal update
- cabal install --only-dependencies
- cabal configure
- cabal build
cabal install
- uses: actions/cache@v1
if: steps.gwion-bin.outputs.cache-hit == 'true'
run: |
cd Gwion
- if [ $(git rev-parse HEAD) != $(git ls-remote https://github.com/fennecdjay/mdr.git HEAD | cut -f1) ]
+ if [ $(git rev-parse HEAD) != $(git ls-remote https://github.com/fennecdjay/Gwion.git HEAD | cut -f1) ]
then
git pull
- git submodule update --init util ast
+ git submodule update util ast
make
fi
cp gwion ..