-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH release: OTP 23 is discontinued (#42)
Summary: We use mainstream rebar3 for release and rebar3 is not compatible with OTP 23 anymore. So, discontinuing support for OTP 23. Pull Request resolved: #42 Reviewed By: TD5 Differential Revision: D48863311 Pulled By: ilya-klyuchnikov fbshipit-source-id: 08217b2c30d6a4a13e5bfdd45da160a9181242a4
- Loading branch information
1 parent
bf4ea15
commit 2343589
Showing
1 changed file
with
0 additions
and
108 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 |
---|---|---|
|
@@ -67,68 +67,6 @@ jobs: | |
asset_name: elp-linux.tar.gz | ||
asset_path: elp-linux.tar.gz | ||
upload_url: "${{ steps.get_release_url.outputs.upload_url }}" | ||
linux-release-otp-23: | ||
needs: | ||
- linux-release-otp-25 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: "actions/checkout@v3" | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install musl-tools for rust toolchain | ||
uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: musl-tools | ||
version: 1.0 | ||
- name: Set up rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: x86_64-unknown-linux-musl | ||
- name: Install OTP | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: '23.3' | ||
install-rebar: false | ||
install-hex: false | ||
- name: Install rebar3 | ||
run: "curl https://s3.amazonaws.com/rebar3/rebar3 -o rebar3 && chmod +x rebar3" | ||
- name: "add rebar3 to path" | ||
run: 'echo "$GITHUB_WORKSPACE/rebar3" >> $GITHUB_PATH' | ||
- name: Download eqwalizer.jar | ||
uses: "actions/download-artifact@v3" | ||
with: | ||
name: eqwalizer.jar | ||
path: eqwalizer/target/scala-2.13 | ||
- name: Download eqwalizer binary | ||
uses: "actions/download-artifact@v3" | ||
with: | ||
name: eqwalizer | ||
path: eqwalizer | ||
- name: Test elp | ||
run: "cd mini-elp && cargo test --workspace --target x86_64-unknown-linux-musl" | ||
- name: Assemble elp | ||
run: "export ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer && cd mini-elp && cargo build --release --target x86_64-unknown-linux-musl" | ||
- name: Make elp-linux-otp-23.tar.gz | ||
run: 'tar -zcvf elp-linux-otp-23.tar.gz -C mini-elp/target/x86_64-unknown-linux-musl/release/ elp' | ||
- env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
id: get_release_url | ||
name: Get release url | ||
uses: "bruceadams/[email protected]" | ||
- env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
name: Upload release elp-linux-otp-23.tar.gz | ||
uses: "actions/[email protected]" | ||
with: | ||
asset_content_type: application/octet-stream | ||
asset_name: elp-linux-otp-23.tar.gz | ||
asset_path: elp-linux-otp-23.tar.gz | ||
upload_url: "${{ steps.get_release_url.outputs.upload_url }}" | ||
macos-release-otp-25: | ||
needs: | ||
- linux-release-otp-25 | ||
|
@@ -175,52 +113,6 @@ jobs: | |
asset_name: elp-macos.tar.gz | ||
asset_path: elp-macos.tar.gz | ||
upload_url: "${{ steps.get_release_url.outputs.upload_url }}" | ||
macos-release-otp-23: | ||
needs: | ||
- linux-release-otp-25 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: "actions/checkout@v3" | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install erlang | ||
run: brew install erlang@23 | ||
- name: Install rebar3 | ||
run: "mkdir rebar3 && curl https://s3.amazonaws.com/rebar3/rebar3 -o rebar3/rebar3 && chmod +x rebar3/rebar3" | ||
- name: Set up rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Download eqwalizer.jar | ||
uses: "actions/download-artifact@v3" | ||
with: | ||
name: eqwalizer.jar | ||
path: eqwalizer/target/scala-2.13 | ||
- name: Assemble eqwalizer binary | ||
run: "cd eqwalizer && native-image -H:IncludeResources=application.conf --no-server --no-fallback -jar target/scala-2.13/eqwalizer.jar eqwalizer" | ||
- name: Test elp | ||
run: "export PATH=$GITHUB_WORKSPACE/rebar3:/usr/local/opt/erlang@23/bin:$PATH ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer && cd mini-elp && cargo test --workspace" | ||
- name: Assemble elp | ||
run: "export PATH=$GITHUB_WORKSPACE/rebar3:/usr/local/opt/erlang@23/bin:$PATH ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer && cd mini-elp && cargo build --release" | ||
- name: Make elp-macos-otp-23.tar.gz | ||
run: 'tar -zcvf elp-macos-otp-23.tar.gz -C mini-elp/target/release/ elp' | ||
- env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
id: get_release_url | ||
name: Get release url | ||
uses: "bruceadams/[email protected]" | ||
- env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
name: Upload release elp-macos-otp-23.tar.gz | ||
uses: "actions/[email protected]" | ||
with: | ||
asset_content_type: application/octet-stream | ||
asset_name: elp-macos-otp-23.tar.gz | ||
asset_path: elp-macos-otp-23.tar.gz | ||
upload_url: "${{ steps.get_release_url.outputs.upload_url }}" | ||
name: eqWAlizer release | ||
on: | ||
release: | ||
|