diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 3c6d436c78f26a324b03b7c9592c5c75c9f755c5..36149eb956a9be16764a9c0148abd7dd605d847e 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v2 - name: bootstrap.py run: | + ghcup config set cache true ghcup install ghc 8.10.7 python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json @@ -43,6 +44,7 @@ jobs: # We use linux dependencies - name: bootstrap.py run: | + ghcup config set cache true ghcup install ghc 8.10.7 python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json diff --git a/.github/workflows/quick-jobs.yml b/.github/workflows/quick-jobs.yml index 54a188b98c1ddbe968a9b36c8e7546ae9269c6e5..34138dc3305b932a7d7c7401b994cbe2f95eb691 100644 --- a/.github/workflows/quick-jobs.yml +++ b/.github/workflows/quick-jobs.yml @@ -28,6 +28,11 @@ jobs: with: path: ~/.cabal/store key: linux-store-meta + - name: ghcup + run: | + ghcup config set cache true + ghcup install ghc recommended + ghcup set ghc recommended - name: Update Hackage index run: cabal v2-update - name: Install alex @@ -62,6 +67,11 @@ jobs: with: path: ~/.cabal/store key: linux-store-doctest + - name: ghcup + run: | + ghcup config set cache true + ghcup install ghc recommended + ghcup set ghc recommended - name: Update Hackage index run: cabal v2-update - name: Install doctest diff --git a/templates/ci-bootstrap.template.yml b/templates/ci-bootstrap.template.yml index 3c6d436c78f26a324b03b7c9592c5c75c9f755c5..36149eb956a9be16764a9c0148abd7dd605d847e 100644 --- a/templates/ci-bootstrap.template.yml +++ b/templates/ci-bootstrap.template.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v2 - name: bootstrap.py run: | + ghcup config set cache true ghcup install ghc 8.10.7 python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json @@ -43,6 +44,7 @@ jobs: # We use linux dependencies - name: bootstrap.py run: | + ghcup config set cache true ghcup install ghc 8.10.7 python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json diff --git a/templates/ci-quick-jobs.template.yml b/templates/ci-quick-jobs.template.yml index 54a188b98c1ddbe968a9b36c8e7546ae9269c6e5..34138dc3305b932a7d7c7401b994cbe2f95eb691 100644 --- a/templates/ci-quick-jobs.template.yml +++ b/templates/ci-quick-jobs.template.yml @@ -28,6 +28,11 @@ jobs: with: path: ~/.cabal/store key: linux-store-meta + - name: ghcup + run: | + ghcup config set cache true + ghcup install ghc recommended + ghcup set ghc recommended - name: Update Hackage index run: cabal v2-update - name: Install alex @@ -62,6 +67,11 @@ jobs: with: path: ~/.cabal/store key: linux-store-doctest + - name: ghcup + run: | + ghcup config set cache true + ghcup install ghc recommended + ghcup set ghc recommended - name: Update Hackage index run: cabal v2-update - name: Install doctest