Skip to content

Commit ce193c4

Browse files
committed
chore: use default target when building on unknown-linux-gnu
Signed-off-by: KtorZ <[email protected]>
1 parent 943f805 commit ce193c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/CI.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ jobs:
105105
# cross doesn't load .cargo/config.toml, see https://github.com/cross-rs/cross/issues/562
106106
$HOME/.cargo/bin/cross $COMMAND --locked --all-features $SCOPE --target ${{ matrix.environments.target }}
107107
else
108-
cargo $EXTRA_ARGS $COMMAND $SCOPE --locked --target ${{ matrix.environments.target }}
108+
if [[ "${{ matrix.environments.target }}" == "x86_64-unknown-linux-gnu" ]] ; then
109+
cargo $EXTRA_ARGS $COMMAND $SCOPE --locked
110+
else
111+
cargo $EXTRA_ARGS $COMMAND $SCOPE --locked --target ${{ matrix.environments.target }}
112+
fi
109113
fi
110114
exitcode="$?"
111115
if [[ "${{ matrix.environments.optional }}" == "true" && "$exitcode" != "0" ]] ; then
@@ -180,7 +184,7 @@ jobs:
180184
181185
- name: Build Amaru
182186
run: |
183-
cargo test --no-run -p amaru --target x86_64-unknown-linux-gnu
187+
cargo test --no-run -p amaru
184188
185189
- name: Cache Amaru's ledger.db
186190
id: cache-ledger-db

0 commit comments

Comments
 (0)