Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Nov 9, 2023
2 parents 14ce71d + fbe53ad commit 54e7c03
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-otp-tar
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ else

progress "Unpacking OTP source code into build-directory"

$gtar -z -x -C $build_root -f $src_tgz
$gtar -i -z -x -C $build_root -f $src_tgz
if [ $? -ne 0 ]; then
error "Failed to unpack source"
fi
Expand Down Expand Up @@ -530,7 +530,7 @@ if [ $? -ne 0 ]; then
fi

progress "Unpacking OTP source code into source-directory"
$gtar -z -x -C $src_root -f $src_tgz
$gtar -i -z -x -C $src_root -f $src_tgz
if [ $? -ne 0 ]; then
error "Failed to unpack source"
fi
Expand Down

0 comments on commit 54e7c03

Please sign in to comment.