Skip to content

Commit

Permalink
fix: fix ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
xilosada committed Jun 10, 2024
1 parent 44faa18 commit 5ae96d7
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/desktop_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ jobs:
- name: Install target for ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}

- name: Install cross-compilation tools for Linux
if: matrix.target == 'aarch64-unknown-linux-gnu'
- name: Install dependencies for Linux
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev pkg-config
- name: Set environment variables for OpenSSL
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
export OPENSSL_DIR=/usr
export PKG_CONFIG_PATH=$OPENSSL_DIR/lib/pkgconfig
export PKG_CONFIG_ALLOW_CROSS=1
export PKG_CONFIG_SYSROOT_DIR=/
cargo build -p calimero-node --release --target ${{ matrix.target }}
- name: Cache cargo registry
uses: actions/cache@v3
Expand All @@ -52,11 +60,12 @@ jobs:
key: ${{ runner.os }}-cargo-build-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-build-

- name: Build the crate
- name: Build the crate for x86_64
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo build -p calimero-node --release --target ${{ matrix.target }}

- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: calimero-node_${{ matrix.target }}
path: target/${{ matrix.target }}/release/calimero-node*
path: target/${{ matrix.target }}/release/calimero-node*

0 comments on commit 5ae96d7

Please sign in to comment.