Move target-cpu to env variable
@@ -72,13 +72,17 @@ jobs:
- name: Build jormungandr
uses: actions-rs/cargo@v1
+ env:
+ RUSTFLAGS: target-cpu=${{ matrix.config.target_cpu }}
with:
use-cross: ${{ matrix.config.cross }}
command: rustc
- args: --release --target ${{ matrix.config.target }} -p jormungandr --bin jormungandr -- -C target-cpu=${{ matrix.config.target_cpu }} lto
+ args: --release --target ${{ matrix.config.target }} -p jormungandr --bin jormungandr -- -C lto
- name: Build jcli
uses: actions-rs/cargo@v1
+ env:
+ RUSTFLAGS: target-cpu=${{ matrix.config.target_cpu }}
with:
use-cross: ${{ matrix.config.cross }}
command: rustc
