-
Notifications
You must be signed in to change notification settings - Fork 3k
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
1 parent
447964c
commit ed23ff8
Showing
6 changed files
with
35 additions
and
35 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 |
---|---|---|
|
@@ -20,14 +20,14 @@ runs: | |
run: .github/scripts/cleanup_gh_runner.sh | ||
|
||
- name: Cache BASE image | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
if: inputs.TYPE == '64-bit' || inputs.TYPE == 'clang' | ||
with: | ||
path: otp_docker_base.tar | ||
key: ${{ runner.os }}-${{ hashFiles('.github/dockerfiles/Dockerfile.ubuntu-base', '.github/scripts/build-base-image.sh') }}-${{ hashFiles('OTP_VERSION') }} | ||
|
||
- name: Docker login | ||
uses: docker/login-action@v3.0.0 | ||
uses: docker/login-action@v3.1.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
|
@@ -39,13 +39,13 @@ runs: | |
|
||
- name: Cache pre-built src | ||
if: inputs.BUILD_IMAGE == 'true' | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
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].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: otp_cache.tar.gz | ||
key: prebuilt-cache-${{ inputs.TYPE }}-${{ github.ref_name }}-${{ github.sha }} | ||
|
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
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
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 |
---|---|---|
|
@@ -58,7 +58,7 @@ jobs: | |
ALL_APPS=$(jq -n --arg inarr "${ALL_APPS}" '$inarr | split("\n")' | tr '\n' ' ') | ||
echo "all=${ALL_APPS}" >> $GITHUB_OUTPUT | ||
- name: Check which applications have changed | ||
uses: dorny/[email protected].0 | ||
uses: dorny/[email protected].2 | ||
id: app-changes | ||
with: | ||
filters: .github/scripts/path-filters.yaml | ||
|
@@ -74,19 +74,19 @@ jobs: | |
echo "changes=${CHANGED_APPS}" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Check if there are any C-code changes, if not then limit CI run | ||
uses: dorny/[email protected].0 | ||
uses: dorny/[email protected].2 | ||
id: c-code-changes | ||
with: | ||
filters: .github/scripts/c-code-path-filters.yaml | ||
- name: Cache pre-built src | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: otp_src.tar.gz | ||
key: prebuilt-src-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
prebuilt-src-${{ github.base_ref }}-${{ github.event.pull_request.base.sha }} | ||
- name: Cache pre-built binaries | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: otp_cache.tar.gz | ||
key: prebuilt-cache-64-bit-${{ github.ref_name }}-${{ github.sha }} | ||
|
@@ -95,12 +95,12 @@ jobs: | |
- name: Create initial pre-release tar | ||
run: .github/scripts/init-pre-release.sh otp_archive.tar.gz otp_src.tar.gz | ||
- name: Upload source tar archive | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: otp_git_archive | ||
path: otp_archive.tar.gz | ||
- name: Check how we can use the pre-built cache | ||
uses: dorny/[email protected].0 | ||
uses: dorny/[email protected].2 | ||
id: cache | ||
with: | ||
filters: | | ||
|
@@ -139,7 +139,7 @@ jobs: | |
"`pwd`/.github/otp.tar.gz" \ | ||
"`pwd`/otp_archive.tar.gz" | ||
- name: Upload restored cache | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
if: runner.debug == 1 | ||
with: | ||
name: restored-cache | ||
|
@@ -166,7 +166,7 @@ jobs: | |
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 pre-built tar archives | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: otp_prebuilt | ||
path: | | ||
|
@@ -184,13 +184,13 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Download source archive | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: otp_prebuilt | ||
|
||
- name: Cache wxWidgets | ||
id: wxwidgets-cache | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: wxWidgets | ||
key: wxWidgets-${{ env.WXWIDGETS_VERSION }}-${{ runner.os }}-12 | ||
|
@@ -216,7 +216,7 @@ jobs: | |
./bin/erl -noshell -eval '{wx_ref,_,_,_} = wx:new(), io:format("wx ok~n"), halt().' | ||
- name: Upload tarball | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: otp_prebuilt_macos_x86-64 | ||
path: otp/otp_macos_*_x86-64.tar.gz | ||
|
@@ -231,7 +231,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Download source archive | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: otp_prebuilt | ||
|
||
|
@@ -250,7 +250,7 @@ jobs: | |
xcodebuild -create-xcframework -output ./liberlang.xcframework -library liberlang.a | ||
- name: Upload framework | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: ios_framework_${{ env.TARGET_ARCH }} | ||
path: otp/liberlang.xcframework | ||
|
@@ -266,7 +266,7 @@ jobs: | |
needs: pack | ||
if: needs.pack.outputs.c-code-changes | ||
steps: | ||
- uses: Vampire/setup-wsl@v2.0.2 | ||
- uses: Vampire/setup-wsl@v3.0.0 | ||
with: | ||
distribution: Ubuntu-18.04 | ||
|
||
|
@@ -280,7 +280,7 @@ jobs: | |
IF EXIST "c:\\Program Files\\OpenSSL-Win64" (move "c:\\Program Files\\OpenSSL-Win64" "c:\\OpenSSL-Win64") ELSE (move "c:\\Program Files\\OpenSSL" "c:\\OpenSSL-Win64") | ||
- name: Cache wxWidgets | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: wxWidgets | ||
key: wxWidgets-${{ env.WXWIDGETS_VERSION }}-${{ runner.os }} | ||
|
@@ -322,7 +322,7 @@ jobs: | |
nmake TARGET_CPU=amd64 BUILD=release SHARED=0 DIR_SUFFIX_CPU= -f makefile.vc | ||
- name: Download source archive | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: otp_prebuilt | ||
|
||
|
@@ -350,7 +350,7 @@ jobs: | |
./otp_build installer_win32 | ||
- name: Upload installer | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: otp_win32_installer | ||
path: otp/release/win32/otp*.exe | ||
|
@@ -427,7 +427,7 @@ jobs: | |
sudo chown -R `whoami` docs | ||
cd docs && tar czf ../otp_doc_html.tar.gz * | ||
- name: Upload html documentation archive | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: otp_doc_html | ||
path: otp_doc_html.tar.gz | ||
|
@@ -505,7 +505,7 @@ jobs: | |
sudo bash -c "chown -R `whoami` make_test_dir && chmod -R +r make_test_dir" | ||
tar czf ${{ matrix.type }}_test_results.tar.gz make_test_dir | ||
- name: Upload test results | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: ${{ matrix.type }}_test_results | ||
|
@@ -522,7 +522,7 @@ jobs: | |
with: | ||
BASE_BRANCH: ${{ env.BASE_BRANCH }} | ||
- name: Download test results | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
- name: Merge test results | ||
run: | | ||
shopt -s nullglob | ||
|
@@ -552,14 +552,14 @@ jobs: | |
-e 's:\(file="erts/\)make_test_dir/[^/]*:\1test:g' \ | ||
make_test_dir/*_junit.xml | ||
- name: Upload test results | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: test_results | ||
path: test_results.tar.gz | ||
- name: Upload Test Results | ||
if: ${{ !cancelled() }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: Unit Test Results | ||
path: | | ||
|
@@ -590,11 +590,11 @@ jobs: | |
|
||
## Publish the pre-built archive and docs | ||
- name: Download source archive | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: otp_prebuilt | ||
- name: Download html docs | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: otp_doc_html | ||
|
||
|
@@ -613,7 +613,7 @@ jobs: | |
sha256sum $FILES > SHA256.txt | ||
- name: Upload pre-built and doc tar archives | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@v2.0.4 | ||
with: | ||
name: OTP ${{ steps.tag.outputs.vsn }} | ||
files: | | ||
|
@@ -632,7 +632,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} |
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
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