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

ci: Add otp_win.zip to releases #8729

Closed
wants to merge 3 commits into from
Closed
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
17 changes: 15 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ jobs:
distribution: Ubuntu-18.04

- name: Install WSL dependencies
run: apt update && apt install -y g++-mingw-w64 gcc-mingw-w64 make autoconf unzip
run: apt update && apt install -y g++-mingw-w64 gcc-mingw-w64 make autoconf zip unzip

- name: Install openssl
shell: cmd
Expand Down Expand Up @@ -355,6 +355,17 @@ jobs:
name: otp_win32_installer
path: otp/release/win32/otp*.exe

- name: Build zip
run: |
rm -rf otp/release/win32/otp*.exe
(cd otp/release/win32 && zip -r ../../../otp_win.zip .)

- name: Upload zip
uses: actions/[email protected]
with:
name: otp_win
path: otp_win.zip

build-flavors:
name: Build Erlang/OTP (Types and Flavors)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -599,6 +610,7 @@ jobs:
uses: actions/[email protected]
with:
name: otp_prebuilt

- name: Download html docs
uses: actions/[email protected]
with:
Expand All @@ -614,7 +626,7 @@ jobs:
run: |
shopt -s nullglob
cd artifacts
FILES=$(ls {*.tar.gz,*.txt})
FILES=$(ls {*.tar.gz,*.zip,*.txt})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the moment the .zip is not yet included in the release, I'm not sure how .exe ends up here. I assume it's via some actions/download-artifact but I couldn't figure it out. Any help would be appreciated.

md5sum $FILES > MD5.txt
sha256sum $FILES > SHA256.txt

Expand All @@ -624,6 +636,7 @@ jobs:
name: OTP ${{ steps.tag.outputs.vsn }}
files: |
artifacts/*.tar.gz
artifacts/*.zip
artifacts/*.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading