mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
actually you do effectively build them twice
This commit is contained in:
parent
2dc82c34cb
commit
fb45a2e168
1 changed files with 4 additions and 1 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
- name: Install Rust dependencies
|
- name: Install Rust dependencies
|
||||||
run: cargo fetch --target ${{ env.RUST_TARGET }}
|
run: cargo fetch --target ${{ env.RUST_TARGET }}
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: cargo build and test --release --target ${{ env.RUST_TARGET }}
|
run: cargo build --release --target ${{ env.RUST_TARGET }}
|
||||||
env:
|
env:
|
||||||
# Set linker for the target
|
# Set linker for the target
|
||||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||||
|
|
@ -60,6 +60,9 @@ jobs:
|
||||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1
|
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1
|
||||||
# Add library path for the cross-compiler's linker
|
# Add library path for the cross-compiler's linker
|
||||||
RUSTFLAGS: -L/usr/lib/aarch64-linux-gnu
|
RUSTFLAGS: -L/usr/lib/aarch64-linux-gnu
|
||||||
|
- name: Run tests on native platform
|
||||||
|
run: cargo test --release --bin ntp_timeturner
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue