-
Notifications
You must be signed in to change notification settings - Fork 38
chore: Update Ubuntu versions from 20.04/22.04 to 24.04 in GitHub workflows #146
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
345fbb4
Update Ubuntu versions from 20.04/22.04 to 24.04 in GitHub workflows
devin-ai-integration[bot] 418fc00
Update additional workflow files to use Ubuntu 24.04
devin-ai-integration[bot] e4b37d4
Update Redis GitHub Action to version 1.8.0 for Ubuntu 24.04 compatib…
devin-ai-integration[bot] 8a2e8ca
Update erlef/setup-beam action to v1.18.2 for better compatibility wi…
devin-ai-integration[bot] 852f65f
Update contract-tests action to v1.1.0 for Ubuntu 24.04 compatibility
devin-ai-integration[bot] 91f9915
Replace erlef/setup-beam with kerl for installing specific Erlang ver…
devin-ai-integration[bot] 7b9ea5c
Replace erlef/setup-beam with kerl for installing specific Erlang ver…
devin-ai-integration[bot] 918ecc2
Fix rebar3 installation to use specific versions and ensure it's in PATH
devin-ai-integration[bot] 931aca6
Fix contract test service startup in CI workflow
devin-ai-integration[bot] edf4f51
Install rebar3 from source.
kinyoklion 5777408
Install rebar3 correctly.
kinyoklion 1dda05c
Home
kinyoklion 2b8da7d
Debugging.
kinyoklion 33609a1
More debug.
kinyoklion 7800f0c
Fix path
kinyoklion a291e0d
Add erl path.
kinyoklion 8e8d68b
Consolidate erlang/rebar install action.
kinyoklion c785796
Use correct iteration of script.
kinyoklion 14b3f0e
Add shell.
kinyoklion 499cb78
Consistent version handling.
kinyoklion ddaf3bf
Correct versions.
kinyoklion 9f4243f
Remove extraneous commands.
kinyoklion cc0a591
Use default versions for non-ci case.
kinyoklion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -17,17 +17,18 @@ runs: | |
| steps: | ||
| - run: make compile | ||
| shell: bash | ||
| - uses: supercharge/redis-github-action@1.6.0 | ||
| - uses: supercharge/redis-github-action@ea9b21c6ecece47bd99595c532e481390ea0f044 | ||
| - run: make ci-tests | ||
| shell: bash | ||
| - uses: ./.github/actions/build-docs | ||
| - run: make dialyze | ||
| shell: bash | ||
| - run: make build-contract-tests | ||
| shell: bash | ||
| - run: make start-contract-test-service-bg | ||
| - name: Start contract test service | ||
| shell: bash | ||
| - uses: launchdarkly/gh-actions/actions/[email protected] | ||
| run: make start-contract-test-service-bg | ||
| - uses: launchdarkly/gh-actions/actions/[email protected] | ||
| with: | ||
| test_service_port: 8000 | ||
| token: ${{ inputs.github_token }} | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: 'Install Erlang OTP and rebar3' | ||
| description: 'Installs a specific version of Erlang OTP and rebar3' | ||
| inputs: | ||
| otp_version: | ||
| description: 'The OTP version to install' | ||
| required: false | ||
| default: '25.3.2.19' | ||
| rebar_version: | ||
| description: 'The rebar3 version to install' | ||
| required: false | ||
| default: '174fd9070195443d693d444ecd1f2b7aa91661fe' # 3.18.0 | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
|
|
||
| - name: Install kerl | ||
| shell: bash | ||
| run: | | ||
| curl -s https://raw.githubusercontent.com/kerl/kerl/master/kerl > /tmp/kerl | ||
| chmod a+x /tmp/kerl | ||
|
|
||
| - name: Install Erlang OTP and rebar3 | ||
| shell: bash | ||
| run: | | ||
| # Build and install Erlang | ||
| /tmp/kerl build ${{ inputs.otp_version }} ${{ inputs.otp_version }} | ||
| /tmp/kerl install ${{ inputs.otp_version }} ~/otp/${{ inputs.otp_version }} | ||
| # This will make the erlang version available to the current shell. | ||
| . ~/otp/${{ inputs.otp_version }}/activate | ||
| # Persist to the github actions path for use in future steps. | ||
| echo "$HOME/otp/${{ inputs.otp_version }}/bin" >> "$GITHUB_PATH" | ||
|
|
||
| # Install specific rebar3 version | ||
| cd ~/ | ||
| git clone https://github.com/erlang/rebar3.git | ||
| cd rebar3 | ||
| git checkout ${{ matrix.versions.rebar }} | ||
| ./bootstrap | ||
| ./rebar3 local install | ||
|
|
||
| # Add to the path for use in this step. | ||
| export PATH=$HOME/otp/${{ inputs.otp_version }}/.cache/rebar3/bin:$PATH | ||
| # Persist to the github actions path for use in future steps. | ||
| echo "$HOME/otp/${{ inputs.otp_version }}/.cache/rebar3/bin" >> "$GITHUB_PATH" | ||
|
|
||
| # Verify installation | ||
| echo "Installed Erlang version:" | ||
| erl -noshell -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), halt().' | ||
| echo "Installed rebar3 version:" | ||
| rebar3 --version |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel a little better pinning this.