Skip to content

Commit

Permalink
CI のキャッシュなど改修
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkun61 committed Jun 30, 2023
1 parent 5347abc commit 5c6a5fd
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 65 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/lint.yaml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: main

on:
- push
- pull_request

jobs:
test:
strategy:
matrix:
ghc: [8.6.5, 8.8.3, 8.10.1]
test: [doctest, spec]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- run: cp cabal.project.${{ matrix.ghc }}.freeze cabal.project.freeze
- uses: actions/cache/restore@v3
with:
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
./dist-newstyle
key: cabal-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('./cabal.project.freeze') }}
restore-keys: cabal-${{ runner.os }}-${{ matrix.ghc }}-
- run: make build-deps
- uses: actions/cache/save@v3
with:
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
./dist-newstyle
key: cabal-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('./cabal.project.freeze') }}
- run: make build
env:
CABAL_OPTIONS: --ghc-options -Werror
- run: make ${{ matrix.test }}

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: haskell/actions/hlint-setup@v2
- run: sudo apt-get install libtinfo5
- run: make lint
39 changes: 0 additions & 39 deletions .github/workflows/test.yaml

This file was deleted.

114 changes: 114 additions & 0 deletions cabal.project.8.10.1.freeze
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
active-repositories: hackage.haskell.org:merge
constraints: any.Cabal ==3.2.0.0,
any.HUnit ==1.6.2.0,
any.OneTuple ==0.4.1.1,
any.QuickCheck ==2.14.3,
QuickCheck -old-random +templatehaskell,
any.StateVar ==1.2.2,
any.Win32 ==2.6.1.0,
any.aeson ==2.2.0.0,
aeson +ordered-keymap,
any.ansi-terminal ==1.0,
ansi-terminal -example,
any.ansi-terminal-types ==0.11.5,
any.array ==0.5.4.0,
any.assoc ==1.1,
assoc +tagged,
any.base ==4.14.0.0,
any.base-compat ==0.13.0,
any.base-orphans ==0.9.0,
any.bifunctors ==5.6.1,
bifunctors +tagged,
any.binary ==0.8.8.0,
any.bytestring ==0.10.10.0,
any.call-stack ==0.4.0,
any.code-page ==0.2.1,
any.colour ==2.3.6,
any.comonad ==5.0.8,
comonad +containers +distributive +indexed-traversable,
any.containers ==0.6.2.1,
any.contravariant ==1.5.5,
contravariant +semigroups +statevar +tagged,
any.data-array-byte ==0.1.0.1,
any.data-fix ==0.3.2,
any.deepseq ==1.4.4.0,
any.directory ==1.3.6.0,
any.distributive ==0.6.2.1,
distributive +semigroups +tagged,
any.dlist ==1.0,
dlist -werror,
any.doctest ==0.21.1,
any.doctest-discover ==0.2.0.0,
any.exceptions ==0.10.4,
any.filepath ==1.4.2.1,
any.foldable1-classes-compat ==0.1,
foldable1-classes-compat +tagged,
any.generically ==0.1.1,
any.ghc ==8.10.1,
any.ghc-boot ==8.10.1,
any.ghc-boot-th ==8.10.1,
any.ghc-heap ==8.10.1,
any.ghc-paths ==0.1.0.12,
any.ghc-prim ==0.6.1,
any.ghci ==8.10.1,
any.hashable ==1.4.2.0,
hashable +integer-gmp -random-initial-seed,
any.haskell-lexer ==1.1.1,
any.hpc ==0.6.1.0,
any.hsc2hs ==0.68.9,
hsc2hs -in-ghc-tree,
any.hspec ==2.11.1,
any.hspec-core ==2.11.1,
any.hspec-discover ==2.11.1,
any.hspec-expectations ==0.8.3,
any.indexed-traversable ==0.1.2.1,
any.indexed-traversable-instances ==0.1.1.2,
any.integer-conversion ==0.1,
any.integer-gmp ==1.0.3.0,
any.integer-logarithms ==1.0.3.1,
integer-logarithms -check-bounds +integer-gmp,
any.mtl ==2.2.2,
any.network-uri ==2.6.4.2,
any.parsec ==3.1.14.0,
any.pretty ==1.1.3.6,
any.primitive ==0.8.0.0,
any.process ==1.6.8.2,
any.quickcheck-io ==0.2.0,
any.random ==1.2.1.1,
any.rts ==1.0,
any.scientific ==0.3.7.0,
scientific -bytestring-builder -integer-simple,
any.semialign ==1.3,
semialign +semigroupoids,
any.semigroupoids ==6.0.0.1,
semigroupoids +comonad +containers +contravariant +distributive +tagged +unordered-containers,
any.splitmix ==0.1.0.4,
splitmix -optimised-mixer,
any.stm ==2.5.0.0,
any.strict ==0.5,
any.syb ==0.7.2.3,
any.tagged ==0.8.7,
tagged +deepseq +transformers,
any.template-haskell ==2.16.0.0,
any.text ==1.2.3.2,
any.text-iso8601 ==0.1,
any.text-short ==0.1.5,
text-short -asserts,
any.tf-random ==0.5,
any.th-abstraction ==0.5.0.0,
any.th-compat ==0.1.4,
any.these ==1.2,
any.time ==1.9.3,
any.time-compat ==1.9.6.1,
time-compat -old-locale,
any.transformers ==0.5.6.2,
any.transformers-compat ==0.7.2,
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
any.unordered-containers ==0.2.19.1,
unordered-containers -debug,
any.uuid-types ==1.0.5,
any.vector ==0.13.0.0,
vector +boundschecks -internalchecks -unsafechecks -wall,
any.vector-stream ==0.1.0.0,
any.witherable ==0.4.2
index-state: hackage.haskell.org 2023-06-30T03:42:07Z
115 changes: 115 additions & 0 deletions cabal.project.8.6.5.freeze
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
active-repositories: hackage.haskell.org:merge
constraints: any.Cabal ==2.4.0.1,
any.HUnit ==1.6.2.0,
any.OneTuple ==0.4.1.1,
any.QuickCheck ==2.14.3,
QuickCheck -old-random +templatehaskell,
any.StateVar ==1.2.2,
any.Win32 ==2.6.1.0,
any.aeson ==2.2.0.0,
aeson +ordered-keymap,
any.ansi-terminal ==1.0,
ansi-terminal -example,
any.ansi-terminal-types ==0.11.5,
any.array ==0.5.3.0,
any.assoc ==1.1,
assoc +tagged,
any.base ==4.12.0.0,
any.base-compat ==0.13.0,
any.base-orphans ==0.9.0,
any.bifunctors ==5.6.1,
bifunctors +tagged,
any.binary ==0.8.6.0,
any.bytestring ==0.10.8.2,
any.call-stack ==0.4.0,
any.code-page ==0.2.1,
any.colour ==2.3.5,
any.comonad ==5.0.8,
comonad +containers +distributive +indexed-traversable,
any.containers ==0.6.0.1,
any.contravariant ==1.5.5,
contravariant +semigroups +statevar +tagged,
any.data-array-byte ==0.1.0.1,
any.data-fix ==0.3.2,
any.deepseq ==1.4.4.0,
any.directory ==1.3.3.0,
any.distributive ==0.6.2.1,
distributive +semigroups +tagged,
any.dlist ==1.0,
dlist -werror,
any.doctest ==0.21.1,
any.doctest-discover ==0.2.0.0,
any.exceptions ==0.10.7,
exceptions +transformers-0-4,
any.filepath ==1.4.2.1,
any.foldable1-classes-compat ==0.1,
foldable1-classes-compat +tagged,
any.generically ==0.1.1,
any.ghc ==8.6.5,
any.ghc-boot ==8.6.5,
any.ghc-boot-th ==8.6.5,
any.ghc-heap ==8.6.5,
any.ghc-paths ==0.1.0.12,
any.ghc-prim ==0.5.3,
any.ghci ==8.6.5,
any.hashable ==1.4.2.0,
hashable +integer-gmp -random-initial-seed,
any.haskell-lexer ==1.1.1,
any.hpc ==0.6.0.3,
any.hsc2hs ==0.68.9,
hsc2hs -in-ghc-tree,
any.hspec ==2.11.1,
any.hspec-core ==2.11.1,
any.hspec-discover ==2.11.1,
any.hspec-expectations ==0.8.3,
any.indexed-traversable ==0.1.2.1,
any.indexed-traversable-instances ==0.1.1.2,
any.integer-conversion ==0.1,
any.integer-gmp ==1.0.2.0,
any.integer-logarithms ==1.0.3.1,
integer-logarithms -check-bounds +integer-gmp,
any.mtl ==2.2.2,
any.network-uri ==2.6.4.2,
any.parsec ==3.1.13.0,
any.pretty ==1.1.3.6,
any.primitive ==0.8.0.0,
any.process ==1.6.5.0 || ==1.6.17.0,
any.quickcheck-io ==0.2.0,
any.random ==1.2.1.1,
any.rts ==1.0,
any.scientific ==0.3.7.0,
scientific -bytestring-builder -integer-simple,
any.semialign ==1.3,
semialign +semigroupoids,
any.semigroupoids ==6.0.0.1,
semigroupoids +comonad +containers +contravariant +distributive +tagged +unordered-containers,
any.splitmix ==0.1.0.4,
splitmix -optimised-mixer,
any.stm ==2.5.0.0,
any.strict ==0.5,
any.syb ==0.7.2.3,
any.tagged ==0.8.7,
tagged +deepseq +transformers,
any.template-haskell ==2.14.0.0,
any.text ==1.2.3.1,
any.text-iso8601 ==0.1,
any.text-short ==0.1.5,
text-short -asserts,
any.tf-random ==0.5,
any.th-abstraction ==0.5.0.0,
any.th-compat ==0.1.4,
any.these ==1.2,
any.time ==1.8.0.2,
any.time-compat ==1.9.6.1,
time-compat -old-locale,
any.transformers ==0.5.6.2,
any.transformers-compat ==0.7.2,
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
any.unordered-containers ==0.2.19.1,
unordered-containers -debug,
any.uuid-types ==1.0.5,
any.vector ==0.13.0.0,
vector +boundschecks -internalchecks -unsafechecks -wall,
any.vector-stream ==0.1.0.0,
any.witherable ==0.4.2
index-state: hackage.haskell.org 2023-06-30T03:42:07Z
Loading

0 comments on commit 5c6a5fd

Please sign in to comment.