Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AzimMuradov committed Jan 10, 2024
1 parent 1753d51 commit 3bac72a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ jobs:
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
- name: Set up HLint
uses: haskell-actions/hlint-setup@v2
- name: Run HLint
Expand All @@ -54,6 +51,3 @@ jobs:
run: cabal build
- name: Run tests
run: cabal test --test-show-details=direct --test-options "--color=always"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 5 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,21 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Cache Haddock
- name: Cache Cabal
uses: actions/cache@v3
env:
cache-name: cache-haddock
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
key: ${{ runner.os }}-docs-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: ${{ runner.os }}-docs-${{ env.cache-name }}-
- name: Install LLVM
run: sudo apt install -y llvm-9 llvm-9-dev
- name: Build docs
run: cabal haddock --haddock-options="--ignore-all-exports" --haddock-html-location='https://hackage.haskell.org/package/$pkg-$version/docs' --haddock-hyperlink-source --enable-documentation
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ env.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./dist-newstyle/build/x86_64-linux/ghc-${{ matrix.ghc }}/mini-ml-0.1.0.0/doc/html/mini-ml

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3bac72a

Please sign in to comment.