Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-actions: Upload macOS builds to releases #5723

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/create-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ mv otp otp_src_${VSN}
tar -czf ${DIR}/otp_src_${VSN}.tar.gz otp_src_${VSN}
mv otp_doc_man.tar.gz ${DIR}/otp_doc_man_${VSN}.tar.gz
mv otp_doc_html.tar.gz ${DIR}/otp_doc_html_${VSN}.tar.gz
mv otp_macos_x86-64.tar.gz ${DIR}/otp_macos_x86-64_${VSN}.tar.gz
16 changes: 10 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
export PATH=$PWD/wxWidgets/release/bin:$PATH
cd otp
$GITHUB_WORKSPACE/.github/scripts/build-macos.sh
tar -czf otp_macos_$(cat OTP_VERSION)_x86-64.tar.gz -C release .
tar -czf ../otp_macos_x86-64.tar.gz -C release .

- name: Test Erlang
run: |
Expand All @@ -145,7 +145,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: otp_prebuilt_macos_x86-64
path: otp/otp_macos_*_x86-64.tar.gz
path: otp_macos_x86-64.tar.gz

build-ios:
env:
Expand Down Expand Up @@ -518,7 +518,7 @@ jobs:
release:
name: Release Erlang/OTP
runs-on: ubuntu-latest
needs: documentation
needs: [documentation, build-macos]
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'erlang/otp'
steps:
## This step outputs the tag name and whether the tag is a release or patch
Expand All @@ -534,11 +534,15 @@ jobs:

- uses: actions/checkout@v2

## Publish the pre-built archive and docs
## Publish the pre-built archives and docs
- name: Download source archive
uses: actions/download-artifact@v2
with:
name: otp_prebuilt
- name: Download prebuilt macOS archive
uses: actions/download-artifact@v2
with:
name: otp_prebuilt_macos_x86-64
- name: Download html docs
uses: actions/download-artifact@v2
with:
Expand All @@ -550,11 +554,11 @@ jobs:

## We add the correct version name into the file names
## and create the hash files for all assets
- name: Create pre-build and doc archives
- name: Create pre-built and doc archives
run: .github/scripts/create-artifacts.sh artifacts ${{ steps.tag.outputs.tag }}

## Create hash files
- name: Create pre-build and doc archives
- name: Create pre-built and doc archives
run: |
shopt -s nullglob
cd artifacts
Expand Down