Skip to content

Commit

Permalink
Test build on Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Oct 19, 2024
1 parent 098c527 commit e8bbe80
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ on:

jobs:
test:
name: Build
runs-on: ubuntu-22.04
name: Build Linux (arm64)
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get install -y build-essential pkg-config libssl-dev clang cmake llvm g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libc6-dev-i386 g++-13-multilib gcc-13-multilib && dpkg -l

- name: Install protoc
id: deps-protoc
shell: bash
Expand All @@ -24,5 +27,16 @@ jobs:
echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV
export PATH="${PATH}:${HOME}/.local/bin"
- name: Build
run: cargo build -r
- name: Add Rust targets
run: rustup target add aarch64-unknown-linux-gnu

- name: Create Cargo multiarch config
run: |
touch ~/.cargo/config.toml
echo "
[target.aarch64-unknown-linux-gnu]
linker = \"aarch64-linux-gnu-gcc\"
" > ~/.cargo/config.toml
- name: Build for Linux arm64
run: cargo build -r --target=aarch64-unknown-linux-gnu && mv target/aarch64-unknown-linux-gnu/release/platform-cli ./platform-cli-gnu-arm64

0 comments on commit e8bbe80

Please sign in to comment.