forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PEM }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PEM }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,8 +124,14 @@ jobs: | |
.github/ | ||
- name: Build pre-built tar archives | ||
run: | | ||
## Do a little dance to add new files to the cache | ||
gunzip otp_src.tar.gz | ||
gunzip otp_archive.tar.gz | ||
tar -f otp_src_archive.tar --concatenate otp_archive.tar otp_src.tar | ||
## The resulting otp_src.tar.gz needs to be opened with -i, which build-otp-tar does | ||
gzip otp_src_archive.tar | ||
docker run -v $PWD:/github --entrypoint "" otp \ | ||
scripts/build-otp-tar -o /github/otp_clean_src.tar.gz /github/otp_src.tar.gz -b /buildroot/otp/ /github/otp_archive.tar.gz | ||
scripts/build-otp-tar -o /github/otp_clean_src.tar.gz /github/otp_src.tar.gz -b /buildroot/otp/ /github/otp_src_archive.tar.gz | ||
- name: Build cache | ||
run: | | ||
if [ -f otp_cache.tar.gz ]; then | ||
|
@@ -137,6 +143,12 @@ jobs: | |
docker run -v $PWD:/github --entrypoint "" otp \ | ||
bash -c 'set -x; C_APPS=$(ls -d ./lib/*/c_src); find Makefile ./make ./erts ./bin/`erts/autoconf/config.guess` ./lib/erl_interface ./lib/jinterface ${C_APPS} `echo "${C_APPS}" | sed -e 's:c_src$:priv:'` -type f -newer README.md \! -name "*.beam" \! -path "*/doc/*" | xargs tar --transform "s:^./:otp/:" -uvf /github/otp_cache.tar' | ||
gzip otp_cache.tar | ||
- name: Upload concatenated archive | ||
uses: actions/[email protected] | ||
if: runner.debug == 1 | ||
with: | ||
name: otp_src_archive | ||
path: otp_src_archive.tar.gz | ||
- name: Upload pre-built tar archives | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters