diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..aab1092 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,49 @@ +on: [push] +name: build +jobs: + runhaskell: + name: Run Haskell + runs-on: ubuntu-latest # or macOS-latest, or windows-latest + steps: + # things to be cached/restored: + - name: Cache stack global package db + id: stack-global + uses: actions/cache@v2 + with: + path: ~/.stack + key: ${{ runner.os }}-stack-global-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-global-${{ matrix.plan.ghc }} + - name: Cache stack-installed programs in ~/.local/bin + id: stack-programs + uses: actions/cache@v2 + with: + path: ~/.local/bin + key: ${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }} + - name: Cache .stack-work + uses: actions/cache@v2 + with: + path: .stack-work + key: ${{ runner.os }}-stack-work-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-work-${{ matrix.plan.ghc }} + # end cache configuration + - uses: actions/checkout@v2 + - uses: haskell/actions/setup@v1 + with: + # cabal-version: 'latest'. Omitted, but defalts to 'latest' + enable-stack: true + stack-version: 'latest' + - run: stack test + - run: ./build_hsfiles.sh > pdepreludat.hsfiles + - uses: "marvinpinto/action-automatic-releases@latest" + if: github.ref == 'refs/heads/master' + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "draft" + prerelease: true + title: "Draft" + files: | + pdepreludat.hsfiles \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 938080a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: sh - -script: ./build_hsfiles.sh > pdepreludat.hsfiles - -deploy: - provider: releases - api_key: - secure: "tq6xDTZS1nGxFyhQLpOHDv5L3lwsQlImViFcJvJ/0dDioQA+fR2nkSUNyr78H4MexwQ4/M9LyFvjzeGhXWcaRqD3qmQRQJPhdC5QsOTnqSYai5TOdZ/v5PCxTVa8gkohwe0uweSVhCLLYi9ZD3+xdzQ+DCXu6k019VcgLWYH/8BjYuqkoBNK+jnN8WMS8inMuGXgsRNz+I6ahJjStT5P69vKKnvBQz1OjNbWTKLu/5jE992fb4BCegCo/Ryvv+Hm8F6UsSiqd83BFKGkJIg+KGqeTDcrWbqxgvqFRimfMeakUYKvL/IrK/AN8/FV84IkVwjbE950Ntt+YoeUblF4mBWkjzdYcWwAdU6KNI/rvKMsoTcjD07dujNMeSYqxwCF7+fUNePZF4OlZ5LXatlNnKqaSKHg1EhPDVpPfiepTyKFPG9l7CBghla5JkKnCF1MJL3yssXmUXNKrc4kzSzhDCpPet4JJOWbvqsNKul8BEbotZsIsV/f9jl8jDDo+HPHI13lFnOGq44wdXz+caRQfJDknRG0F+S286TgZ49ToPb55sL924M8xYunTjYVXW/8/1EMXUUgsLrt1IitWbugHU71iblCz0cGeiUK4mp5s/c8Seds8M13N4y0gVhIweEg8lARe2Cw5ifCU38l2ODxsWLk82LhteM6MCSQoJGTaVE=" - file: "pdepreludat.hsfiles" - skip_cleanup: true - draft: true - on: - tags: true - diff --git a/README.md b/README.md index d5b5c5b..602b493 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # PdePreludat +[![build](https://github.com/10Pines/pdepreludat/actions/workflows/build.yml/badge.svg)](https://github.com/10Pines/pdepreludat/actions/workflows/build.yml) + Pdepreludat es una biblioteca que busca hacer más amigable y didáctico al Prelude de haskell, por ejemplo mejorando ciertos mensajes de error. La biblioteca exporta un modulo que contiene la mayoría de las funciones existentes en el Prelude, con ciertas modificaciones: diff --git a/the-template/.github/workflows/build.yml b/the-template/.github/workflows/build.yml new file mode 100644 index 0000000..710ec1e --- /dev/null +++ b/the-template/.github/workflows/build.yml @@ -0,0 +1,39 @@ +on: [push] +name: build +jobs: + runhaskell: + name: Run Haskell + runs-on: ubuntu-latest # or macOS-latest, or windows-latest + steps: + # things to be cached/restored: + - name: Cache stack global package db + id: stack-global + uses: actions/cache@v2 + with: + path: ~/.stack + key: ${{ runner.os }}-stack-global-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-global-${{ matrix.plan.ghc }} + - name: Cache stack-installed programs in ~/.local/bin + id: stack-programs + uses: actions/cache@v2 + with: + path: ~/.local/bin + key: ${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }} + - name: Cache .stack-work + uses: actions/cache@v2 + with: + path: .stack-work + key: ${{ runner.os }}-stack-work-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-work-${{ matrix.plan.ghc }} + # end cache configuration + - uses: actions/checkout@v2 + - uses: haskell/actions/setup@v1 + with: + # cabal-version: 'latest'. Omitted, but defalts to 'latest' + enable-stack: true + stack-version: 'latest' + - run: stack test \ No newline at end of file diff --git a/the-template/.travis.yml b/the-template/.travis.yml deleted file mode 100644 index 9805f06..0000000 --- a/the-template/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: false - -language: c - -cache: - directories: - - ~/.stack - -addons: - apt: - packages: - - libgmp-dev - -before_install: - # Download and unpack the stack executable - - mkdir -p ~/.local/bin - - export PATH=$HOME/.local/bin:$PATH - - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' -install: - - stack --no-terminal --install-ghc test --only-dependencies - -script: - - stack --no-terminal test --haddock --no-haddock-deps