-
Notifications
You must be signed in to change notification settings - Fork 154
fix(l1,l2): make ethrex L1 + L2 + GPU build compile for ubuntu 22.04 #5276
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
Changes from 12 commits
9fbd782
7d45f5f
e1c950e
304e54a
ccffe06
8cc5357
ecebab4
26e94eb
2cc588b
50a3bdd
dee5f3b
27ea544
ba62f5c
92079b9
4cc5b80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,8 +2,14 @@ name: Ethrex Release | |||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| # On tags, this generates a release and pushes docker images with the tag name | ||||||
| tags: | ||||||
| - "v*.*.*-*" | ||||||
| # On pushes to main, this silently builds and pushes docker images tagged as 'main' | ||||||
| branches: | ||||||
| - main | ||||||
| # FIXME: This is to trigger the job in the PR's CI | ||||||
| - fix_v7.0.0-rc.1 | ||||||
|
||||||
|
|
||||||
| permissions: | ||||||
| contents: write | ||||||
|
|
@@ -33,7 +39,6 @@ jobs: | |||||
| - platform: ubuntu-22.04 | ||||||
| os: linux | ||||||
| arch: x86_64 | ||||||
| cpu_flags: RUSTFLAGS='-C target-cpu=x86-64-v2' | ||||||
| - platform: ubuntu-22.04-arm | ||||||
| os: linux | ||||||
| arch: aarch64 | ||||||
|
|
@@ -124,7 +129,7 @@ jobs: | |||||
|
|
||||||
| - name: Build ethrex | ||||||
| run: | | ||||||
| COMPILE_CONTRACTS=true ${{ matrix.cpu_flags }} ${{ matrix.gpu_flags }} cargo build --release --features "${{ matrix.features }}" --bin ethrex | ||||||
| COMPILE_CONTRACTS=true ${{ matrix.gpu_flags }} cargo build --release --features "${{ matrix.features }}" --bin ethrex | ||||||
| chmod +x target/release/ethrex | ||||||
| mv target/release/ethrex ethrex${{ matrix.l2_suffix }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.gpu_suffix }} | ||||||
|
|
||||||
|
|
@@ -297,7 +302,13 @@ jobs: | |||||
|
|
||||||
| - name: Format name | ||||||
| run: | | ||||||
| echo "TAG_VERSION=$(echo ${{ github.ref_name }} | tr -d v)" >> $GITHUB_ENV | ||||||
| # For branch builds (main) we want docker images tagged as 'main'. For tag pushes | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's already a CI that builds the docker image for main commits. We should remove either that or this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this change replace entirely the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
| # use the tag name (stripped of a leading 'v'). | ||||||
| if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion from copilot:
Suggested change
|
||||||
| echo "TAG_VERSION=main" >> $GITHUB_ENV | ||||||
| else | ||||||
| echo "TAG_VERSION=$(echo ${{ github.ref_name }} | tr -d v)" >> $GITHUB_ENV | ||||||
| fi | ||||||
|
|
||||||
| # Pushes to ghcr.io/lambdaclass/ethrex | ||||||
| - name: Build and push L1 Docker image | ||||||
|
|
@@ -324,6 +335,7 @@ jobs: | |||||
|
|
||||||
| # Creates a release on GitHub with the binaries | ||||||
| finalize-release: | ||||||
| if: github.ref_type == 'tag' | ||||||
| needs: | ||||||
| - build-ethrex | ||||||
| - build-ethrex-guest | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.