Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH actions replaces Travis #42

Merged
merged 25 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0c65989
Test GH Actions
fdodino Oct 27, 2021
963a79f
Testing pdepreludat.hsfiles
fdodino Oct 27, 2021
d3e7b36
Creating release
fdodino Oct 27, 2021
1758ee6
Removing travis file
fdodino Oct 27, 2021
4345811
Replacing travis with gh actions on template
fdodino Oct 27, 2021
06e8ca9
Adding badge & pre-release creation
fdodino Oct 27, 2021
6b62a78
Forcing build to detect if it fails
fdodino Oct 27, 2021
4dc6fbf
Trying to apply to Draft release
fdodino Oct 27, 2021
ebfcf1e
Trying to reuse Draft release
fdodino Oct 27, 2021
3d7017f
Test using Draft http direct link
fdodino Oct 27, 2021
d542449
Back to creating a new release
fdodino Oct 27, 2021
5573d3f
Reusing last draft release
fdodino Oct 27, 2021
de559b4
Fix agners/get-draft-release version
fdodino Oct 27, 2021
1ff45be
Using last version for get_release
fdodino Oct 27, 2021
5d1ae83
Back to create release
fdodino Oct 27, 2021
410719a
Change: upload hsfiles only on tags
fdodino Oct 29, 2021
456982c
Fix tag name match
fdodino Oct 29, 2021
c7ae7bd
Fix tag build
fdodino Oct 29, 2021
e30e8ab
Splitting build files for gh actions
fdodino Oct 29, 2021
314a8d9
Release draft try
fdodino Oct 29, 2021
12bba80
Omitting ghc version + using latest stack version
fdodino Oct 31, 2021
35c400d
Using new gh action for Haskell setup
fdodino Oct 31, 2021
e4d03a9
Adding version for haskell actions
fdodino Oct 31, 2021
1420591
Replacing gh actions with latest stack in build.yml template
fdodino Oct 31, 2021
5ba7e34
Uploading pdepreludat.hsfiles only for master branch
fdodino Oct 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
ludat marked this conversation as resolved.
Show resolved Hide resolved
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
39 changes: 39 additions & 0 deletions the-template/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 0 additions & 23 deletions the-template/.travis.yml

This file was deleted.