Skip to content

Commit

Permalink
migrating from actions-rs to dtolnay stuff; matrix build; test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Sep 15, 2024
1 parent 5bbbcc8 commit 24617a6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,18 @@ jobs:
run: |
env
sudo apt-get update
# sudo apt-get install -y --no-install-recommends libssl-dev pkg-config gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu musl-tools gcc-multilib
sudo apt-get install -y --no-install-recommends libssl-dev pkg-config musl-tools gcc-multilib
sudo apt-get install -y --no-install-recommends libssl-dev pkg-config gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu musl-tools
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}

- name: Build the project
env:
PKG_CONFIG_PATH: ${{ matrix.pkg_config_path }}
OPENSSL_DIR: /usr/lib/ssl
run: cargo build --release --target=${{ matrix.target }}
with:
toolchain: stable
run: \
cargo install cross --git https://github.com/cross-rs/cross
cross build --target ${{ matrix.target }} --release

- name: Strip symbols from binary
run: |
strip -s ${{ matrix.path }} || arm-linux-gnueabihf-strip -s ${{ matrix.path }} || aarch64-linux-gnu-strip -s ${{ matrix.path }}
Expand Down

0 comments on commit 24617a6

Please sign in to comment.