Skip to content

Commit

Permalink
fix workflows (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
cad0p authored Oct 21, 2022
1 parent bd80d5e commit 16851f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/backend-build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ jobs:
apt-get: libgmp-dev

- name: 📥 Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2.3.3

- name: 🧰 Setup Stack
uses: mstksg/setup-stack@v1
uses: haskell/actions/setup@v2
with:
ghc-version: '8.10.7'
enable-stack: true
stack-version: 'latest'

- name: 🔑 Cache Key
id: cache_key
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/backend-build-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ jobs:
apt-get: libgmp-dev

- name: 📥 Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2.3.3

- name: 🧰 Setup Stack
uses: mstksg/setup-stack@v1
uses: haskell/actions/setup@v2
with:
ghc-version: '8.10.7'
enable-stack: true
stack-version: 'latest'

- name: 🔑 Cache Key
id: cache_key
Expand Down Expand Up @@ -81,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2.3.3

- name: 🚀 Release
uses: docker://antonyurchenko/git-release:latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/backend-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2.3.3

- name: ✍ Check hlint and stylish
run: |
curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s .
curl -sSL https://raw.github.com/jaspervdj/stylish-haskell/master/scripts/latest.sh | sh -s $(find . -type f -name "*.hs" ! -path "*.stack-work*") -i
curl -sSL https://raw.github.com/cad0p/uu-afp-2021-assign2/master/scripts/stylish-haskell.sh | sh -s $(find . -type f -name "*.hs" ! -path "*.stack-work*") -i
if [ -z "$(git status --porcelain)" ]; then
echo "No style errors detected."
else
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
.DS_Store

# IDE
.vscode/*
Expand Down

0 comments on commit 16851f5

Please sign in to comment.