Skip to content

Commit

Permalink
Cache dist-newstyle build artifacts
Browse files Browse the repository at this point in the history
This is used to speed up GitHub Codespace first-launch time
  • Loading branch information
yvan-sraka committed Apr 8, 2024
1 parent 6fe0b49 commit 4a46ac6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.ghc96-iog
COPY .. /workspaces/cardano-base
RUN bash -ic "post-create-command"
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image":"ghcr.io/input-output-hk/devx-devcontainer:ghc962-iog",
"dockerFile":"./Dockerfile",
"customizations":{
"vscode":{
"extensions":[
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ jobs:
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true

- name: Cache HLS artifacts (used to speed up GitHub Codespaces bootstrapping)
if: runner.os == 'Linux' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.6.2')
uses: input-output-hk/actions/cache@latest
with:
ghc_version: ${{ matrix.ghc }}

0 comments on commit 4a46ac6

Please sign in to comment.