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

Cabal project file and basic GitHub actions #158

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
66 changes: 66 additions & 0 deletions .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# modified from https://github.com/jgm/pandoc/blob/master/.github/workflows/ci.yml
name: Cabal CI

on:
push:
branches:
- '**'
paths-ignore: []
pull_request:
paths-ignore: []

jobs:
linux:

runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
versions:
- ghc: '8.6.5'
cabal: '3.4'
- ghc: '8.8.4'
cabal: '3.4'
- ghc: '8.10.4'
cabal: '3.4'
steps:
- uses: actions/checkout@v2

# need to install older cabal/ghc versions from ppa repository

- name: Install recent cabal/ghc
uses: actions/setup-haskell@v1.1.3
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}

# declare/restore cached things
# caching doesn't work for scheduled runs yet
# https://github.com/actions/cache/issues/63

- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v2
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}

- name: Cache cabal work
id: cabal-local
uses: actions/cache@v2
with:
path: |
dist-newstyle
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local

- name: Install dependencies
run: |
cabal update
cabal build all --dependencies-only --enable-tests --disable-optimization
- name: Build
run: |
cabal build all --enable-tests --disable-optimization 2>&1 | tee build.log
- name: Test
run: |
cabal test all --disable-optimization
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ tags

# Certificates
*.pem

dist-newstyle
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
under heavy development and not intended for public consumption, caveat emptor!

[![Build Status](https://img.shields.io/travis/brendanhay/gogol/develop.svg?maxAge=2592000)](https://travis-ci.org/brendanhay/gogol)
[![Build Status](https://github.com/brendanhay/gogol/actions/workflows/cabal.yml/badge.svg)](https://github.com/brendanhay/gogol/actions/workflows/cabal.yml)
[![Hackage Version](https://img.shields.io/hackage/v/gogol.svg)](http://hackage.haskell.org/package/gogol)
[![Gitter Chat](https://img.shields.io/gitter/room/brendanhay/gogol.js.svg?maxAge=2592000)](https://gitter.im/brendanhay/gogol)

Expand Down
173 changes: 173 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
packages:
core
gogol
examples
gogol-abusiveexperiencereport
gogol-acceleratedmobilepageurl
gogol-accessapproval
gogol-accesscontextmanager
gogol-adexchange-buyer
gogol-adexchangebuyer2
gogol-adexchange-seller
gogol-adexperiencereport
gogol-admin-datatransfer
gogol-admin-directory
gogol-admin-reports
gogol-adsense
gogol-adsense-host
gogol-alertcenter
gogol-analytics
gogol-analyticsreporting
gogol-androiddeviceprovisioning
gogol-android-enterprise
gogol-androidmanagement
gogol-android-publisher
gogol-appengine
gogol-apps-activity
gogol-apps-calendar
gogol-apps-licensing
gogol-apps-reseller
gogol-apps-tasks
gogol-appstate
gogol-bigquery
gogol-bigquerydatatransfer
gogol-bigtableadmin
gogol-billing
gogol-binaryauthorization
gogol-blogger
gogol-books
gogol-chat
gogol-civicinfo
gogol-classroom
gogol-cloudasset
gogol-clouderrorreporting
gogol-cloudfunctions
gogol-cloudidentity
gogol-cloudiot
gogol-cloudkms
gogol-cloudprivatecatalog
gogol-cloudprivatecatalogproducer
gogol-cloudprofiler
gogol-cloudscheduler
gogol-cloudsearch
gogol-cloudshell
gogol-cloudtasks
gogol-cloudtrace
gogol-commentanalyzer
gogol-composer
gogol-compute
gogol-consumersurveys
gogol-container
gogol-containeranalysis
gogol-containerbuilder
gogol-customsearch
gogol-dataflow
gogol-datafusion
gogol-dataproc
gogol-datastore
gogol-debugger
gogol-deploymentmanager
gogol-dfareporting
gogol-dialogflow
gogol-digitalassetlinks
gogol-discovery
gogol-dlp
gogol-dns
gogol-docs
gogol-doubleclick-bids
gogol-doubleclick-search
gogol-drive
gogol-driveactivity
gogol-factchecktools
gogol-file
gogol-firebase-dynamiclinks
gogol-firebasehosting
gogol-firebaseremoteconfig
gogol-firebase-rules
gogol-firestore
gogol-fitness
gogol-fonts
gogol-fusiontables
gogol-games
gogol-games-configuration
gogol-games-management
gogol-genomics
gogol-gmail
gogol-groups-migration
gogol-groups-settings
gogol-healthcare
gogol-iam
gogol-iamcredentials
gogol-iap
gogol-identity-toolkit
gogol-indexing
gogol-jobs
gogol-kgsearch
gogol-language
gogol-libraryagent
gogol-logging
gogol-manufacturers
gogol-mirror
gogol-ml
gogol-monitoring
gogol-oauth2
gogol-oslogin
gogol-pagespeed
gogol-partners
gogol-people
gogol-playcustomapp
gogol-play-moviespartner
gogol-plus
gogol-plus-domains
gogol-poly
gogol-prediction
gogol-proximitybeacon
gogol-pubsub
gogol-qpxexpress
gogol-redis
gogol-remotebuildexecution
gogol-replicapool
gogol-replicapool-updater
gogol-resourcemanager
gogol-run
gogol-runtimeconfig
gogol-safebrowsing
gogol-script
gogol-searchconsole
gogol-securitycenter
gogol-servicebroker
gogol-serviceconsumermanagement
gogol-servicecontrol
gogol-servicemanagement
gogol-servicenetworking
gogol-serviceusage
gogol-serviceuser
gogol-sheets
gogol-shopping-content
gogol-siteverification
gogol-slides
gogol-sourcerepo
gogol-spanner
gogol-spectrum
gogol-speech
gogol-sqladmin
gogol-storage
gogol-storage-transfer
gogol-streetviewpublish
gogol-surveys
gogol-tagmanager
gogol-testing
gogol-texttospeech
gogol-toolresults
gogol-tpu
gogol-tracing
gogol-translate
gogol-urlshortener
gogol-vault
gogol-videointelligence
gogol-vision
gogol-webmaster-tools
gogol-websecurityscanner
gogol-youtube
gogol-youtube-analytics
gogol-youtube-reporting
2 changes: 1 addition & 1 deletion gogol-bigtableadmin/gen/Network/Google/BigtableAdmin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ module Network.Google.BigtableAdmin
) where

import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
import Network.Google.Prelude hiding (Union)
import Network.Google.Resource.BigtableAdmin.Operations.Cancel
import Network.Google.Resource.BigtableAdmin.Operations.Delete
import Network.Google.Resource.BigtableAdmin.Operations.Get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ module Network.Google.BigtableAdmin.Types

import Network.Google.BigtableAdmin.Types.Product
import Network.Google.BigtableAdmin.Types.Sum
import Network.Google.Prelude
import Network.Google.Prelude hiding (Union)

-- | Default request referring to version 'v2' of the Cloud Bigtable Admin API. This contains the host and root path used as a starting point for constructing service requests.
bigtableAdminService :: ServiceConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
module Network.Google.BigtableAdmin.Types.Product where

import Network.Google.BigtableAdmin.Types.Sum
import Network.Google.Prelude
import Network.Google.Prelude hiding (Union)

-- | Unconditionally routes all read\/write requests to a specific cluster.
-- This option preserves read-your-writes consistency, but does not improve
Expand Down