Bring back flag to command
@@ -72,21 +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 lto
+ args: --release --target ${{ matrix.config.target }} -p jormungandr --bin jormungandr -- -C target-cpu=${{ matrix.config.target_cpu }} -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
- args: --release --target ${{ matrix.config.target }} -p jcli --bin jcli -- -C target-cpu=${{ matrix.config.target_cpu }} lto
+ args: --release --target ${{ matrix.config.target }} -p jcli --bin jcli -- -C target-cpu=${{ matrix.config.target_cpu }} -C lto
- name: Get tag version
id: get_version
