mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
tests
This commit is contained in:
parent
fe8e1fc5a9
commit
80b49e3a4a
1 changed files with 15 additions and 1 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
|
@ -60,7 +60,21 @@ jobs:
|
|||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1
|
||||
# Add library path for the cross-compiler's linker
|
||||
RUSTFLAGS: -L/usr/lib/aarch64-linux-gnu
|
||||
|
||||
- name: tests
|
||||
run: cargo test --release --target ${{ env.RUST_TARGET }}
|
||||
env:
|
||||
# Set linker for the target
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||
# Configure pkg-config for cross-compilation
|
||||
PKG_CONFIG_ALLOW_CROSS: 1
|
||||
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
|
||||
PKG_CONFIG_LIBDIR: /usr/lib/aarch64-linux-gnu/pkgconfig
|
||||
PKG_CONFIG_SYSROOT_DIR: /
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS: 1
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1
|
||||
# Add library path for the cross-compiler's linker
|
||||
RUSTFLAGS: -L/usr/lib/aarch64-linux-gnu
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue