Skip to content

Commit

Permalink
Windows C cache
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Oct 24, 2024
1 parent beac82d commit 993f38b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions/build-base-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ runs:
with:
path: otp_src.tar.gz
key: prebuilt-src-${{ github.ref_name }}-${{ github.sha }}

- name: Cache pre-built binaries
if: inputs.BUILD_IMAGE == 'true'
uses: actions/[email protected]
with:
path: otp_cache.tar.gz
key: prebuilt-cache-${{ runner.os }}-${{ inputs.TYPE }}-${{ github.ref_name }}-${{ github.sha }}

- name: Build image
if: inputs.BUILD_IMAGE == 'true'
shell: bash -eo pipefail {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-wsl-runner/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:

- name: Install WSL dependencies
shell: wsl-bash {0}
run: apt update && apt install -y g++-mingw-w64 gcc-mingw-w64 make autoconf unzip zip
run: apt update && apt install -y make autoconf unzip zip

- name: Download source archive
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ jobs:
EVENT: ${{ needs.pack.outputs.EVENT }}
DELETED: ${{ needs.pack.outputs.DELETED }}
run: |
.github/scripts/restore-from-prebuilt.sh `pwd` .github/otp.tar.gz
.github/scripts/restore-from-prebuilt.sh `pwd` .github/otp.tar.gz otp_src.tar.gz
rm -f otp_{src,cache}.tar.gz
- name: Compile Erlang
Expand Down

0 comments on commit 993f38b

Please sign in to comment.