Build this way

This commit is contained in:
QuantumEntangledAndy committed 2023-05-03 16:00:25 +07:00
1 parent c20b944411
commit 26d894222a
4 files changed
+7 -8

No files matched your search

+1 -4
View File
@@ -136,8 +136,6 @@ jobs:
- name: Install rustup
run: |
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --quiet -y
. "$HOME/.cargo/env"
rustup toolchain install nightly
echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
- name: Install ${{ matrix.arch }} Rust toolchain
run: |
@@ -146,13 +144,12 @@ jobs:
TARGET: ${{ matrix.target }}
- name: Build
run: |
cargo +nightly build --verbose --release --all-features --target=${TARGET}
cargo build --verbose --release --all-features --target=${TARGET}
env:
# Retarget pkg-config as described in https://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/
PKG_CONFIG_ALLOW_CROSS: 1
PKG_CONFIG_LIBDIR: /usr/lib/${{ matrix.pkgconfig }}/pkgconfig
TARGET: ${{ matrix.target }}
RUSTFLAGS: "--cfg tokio_unstable"
- uses: actions/upload-artifact@v3
with:
name: release-${{ matrix.arch }}-bullseye